Function at 0x401060
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xb8
mov eax, dword [0x97ffc0]
xor eax, esp
mov dword [esp + 0xb4], eax
push ebx
push ebp
mov ebp, dword [esp + 0xc8]
push esi
push edi
mov dword [esp + 0x24], ebp
call fcn.0045f780
push 0x48
lea eax, [esp + 0x80]
push 0
push eax
call fcn.004f0580
push 0x70
xor eax, eax
mov dword [esp + 0x24], str.main
push 0x70
xorps xmm0, xmm0
mov dword [esp + 0x2c], 0
push 0x60002
push 0x9840a0
mov dword [esp + 0x38], 0
mov esi, 4
movlpd qword [esp + 0x80], xmm0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8d], 0
mov word [esp + 0x91], ax
mov byte [esp + 0x93], al
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], 0x1f
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], 0x1e
mov dword [esp + 0x7c], eax
mov byte [esp + 0x8c], 1
mov dword [esp + 0x94], 0x60002
call fcn.0046b590
push 0
push 0x97f008
push str._s:e:o:m:x:vd
push ebp
push dword [esp + 0xf8]
mov byte [0x9840e7], 0
xor bl, bl
call fcn.0048bbe0
add esp, 0x30
cmp eax, 0xffffffff
je 0x4016ae
nop dword [eax]
dec eax
cmp eax, 0x77
ja case.0x401171.2
movzx eax, byte [eax + 0x401708]
jmp dword [eax*4 + 0x4016e4]
mov esi, dword [0x98417c]
mov ecx, str.vertex
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4011a5
test dl, dl
je 0x4011a1
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4011a5
add eax, 2
add ecx, 2
test dl, dl
jne 0x401185
xor eax, eax
jmp 0x4011aa
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4011b5
xor esi, esi
jmp 0x401402
mov ecx, str.tess_ctrl
mov eax, esi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4011e0
test dl, dl
je 0x4011dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4011e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4011c0
xor eax, eax
jmp 0x4011e5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4011f1
lea esi, [eax + 1]
jmp 0x401402
mov ecx, str.tess_eval
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401218
test dl, dl
je 0x401214
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401218
add eax, 2
add ecx, 2
test dl, dl
jne 0x4011f8
xor eax, eax
jmp 0x40121d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401229
lea esi, [eax + 2]
jmp 0x401402
mov ecx, str.geometry
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401250
test dl, dl
je 0x40124c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401250
add eax, 2
add ecx, 2
test dl, dl
jne 0x401230
xor eax, eax
jmp 0x401255
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401261
lea esi, [eax + 3]
jmp 0x401402
mov ecx, str.fragment
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401288
test dl, dl
je 0x401284
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401288
add eax, 2
add ecx, 2
test dl, dl
jne 0x401268
xor eax, eax
jmp 0x40128d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401299
lea esi, [eax + 4]
jmp 0x401402
mov ecx, str.compute
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4012c0
test dl, dl
je 0x4012bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4012c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4012a0
xor eax, eax
jmp 0x4012c5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401460
lea esi, [eax + 5]
jmp 0x401402
mov eax, dword [0x98417c]
mov dword [esp + 0x14], eax
jmp 0x401402
mov eax, dword [0x98417c]
mov dword [esp + 0x18], eax
jmp 0x401402
mov byte [0x980b40], 1
jmp 0x401402
mov byte [0x980b41], 1
jmp 0x401402
push dword [0x98417c]
call fcn.004f6b8a
add eax, 0x60000
xor ecx, ecx
add esp, 4
mov dword [esp + 0x78], eax
cmp eax, 0x60008
setge cl
mov dword [esp + 0x60], ecx
jmp 0x401402
push dword [0x98417c]
call fcn.004f6b8a
add esp, 4
add eax, 0x10000
mov dword [section..data], eax
jmp 0x401402
mov edi, dword [0x98417c]
lea eax, [esp + 0x28]
push eax
push edi
call fcn.00460ce0
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x40169c
mov ebx, dword [esp + 0x28]
test bl, 3
jne 0x401678
shr ebx, 2
call fcn.00499ee0
push 0x9840a0
push eax
push dword [esp + 0x1c]
push esi
push 0
push 0
push ebx
push ebp
call fcn.0048d020
push ebp
mov edi, eax
call fcn.004f62c0
add esp, 0x24
test edi, edi
je 0x401671
push edi
call fcn.0049aaf0
xor eax, eax
mov word [esp + 0x14], ax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x58]
push eax
push edi
call fcn.0049a180
add esp, 0x10
cmp byte [0x980b41], 0
je 0x4013e6
push 2
call fcn.004f33f4
push eax
push edi
call fcn.00401da0
add esp, 0xc
movq xmm0, qword [esp + 0x14]
lea eax, [esi + esi*2]
mov ebp, dword [esp + 0x24]
mov bl, 1
movq qword [esp + eax*4 + 0x7c], xmm0
mov dword [esp + eax*4 + 0x84], edi
push 0
push 0x97f008
push str._s:e:o:m:x:vd
push ebp
push dword [esp + 0xdc]
call fcn.0048bbe0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x401160
test bl, bl
je 0x4016ae
lea esi, [eax + 4]
lea edi, [esp + 0xb4]
lea ebp, [eax + 6]
nop dword [eax]
mov ebx, dword [edi]
test ebx, ebx
je 0x401499
mov eax, esi
test esi, esi
js 0x401499
lea ecx, [edi - 0xc]
nop
mov edx, dword [ecx]
test edx, edx
jne 0x40147e
sub ecx, 0xc
sub eax, 1
jns 0x401450
jmp 0x401499
push esi
push str.Unknown_stage__s_n
push 2
call fcn.004f33f4
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
jmp 0x4016c6
xor eax, eax
mov word [esp + 0x10], ax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x54]
push eax
push edx
push ebx
call fcn.00499ef0
add esp, 0x10
sub edi, 0xc
dec esi
sub ebp, 1
jne 0x401440
mov eax, dword [esp + 0x78]
lea esi, [esp + 0x80]
mov dword [esp + 0x48], eax
mov eax, dword [section..data]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], 2
mov dword [esp + 0x4c], eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], 0x401040
nop
mov edi, dword [esi + 4]
test edi, edi
je 0x4015a4
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x3c]
push eax
push edi
call fcn.00477330
push edi
mov bl, al
call fcn.00460640
add esp, 0x14
test bl, bl
je 0x40163b
cmp byte [0x980b40], 0
je 0x40155a
push 0
call fcn.00477f20
mov edi, eax
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x24]
push dword [esp + 0x20]
push edi
call fcn.004782f0
mov bl, al
add esp, 0x14
test bl, bl
jne 0x401549
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4015bd
push edi
call fcn.004782a0
add esp, 4
test bl, bl
je 0x4015dc
mov ebx, dword [esi]
test ebx, ebx
je 0x4015a4
push 0x511388
push ebx
call fcn.004f376b
mov edi, eax
add esp, 8
test edi, edi
je 0x401610
push edi
push dword [esp + 0x20]
push 1
push dword [esp + 0x20]
call fcn.004f3a34
push edi
call fcn.004f3684
add esp, 0x14
cmp byte [esp + 0x20], 0
jne 0x4015a4
push dword [esp + 0x14]
call fcn.004f62c0
add esp, 4
inc ebp
add esi, 0xc
cmp ebp, 5
jbe 0x4014e0
call fcn.0045f6d0
xor eax, eax
jmp 0x4016cb
push eax
push str.DXIL:__s_n_n
push 2
call fcn.004f33f4
add esp, 4
push eax
call fcn.00401010
push edi
call fcn.004782a0
add esp, 0x10
push str.Failed_to_validate_DXIL_n
push 2
call fcn.004f33f4
add esp, 4
push eax
call fcn.00401010
add esp, 8
cmp byte [esp + 0x20], 0
jne 0x4016c6
push dword [esp + 0x14]
call fcn.004f62c0
add esp, 4
jmp 0x4016c6
call fcn.004f3241
push dword [eax]
call fcn.004f3321
add esp, 4
push eax
push ebx
push str.Failed_to_open__s___s_n
push 2
call fcn.004f33f4
add esp, 4
push eax
call fcn.00401010
add esp, 0x10
jmp 0x4015f4
push str.Failed_to_convert_to_DXIL_n
push 2
call fcn.004f33f4
add esp, 4
push eax
call fcn.00401010
add esp, 8
cmp dword [esp + 0x18], 0
je 0x40166d
cmp byte [esp + 0x20], 0
jne 0x40166d
push dword [esp + 0x14]
call fcn.004f62c0
add esp, 4
xor eax, eax
jmp 0x4016cb
push str.SPIR_V_to_NIR_failed_n
jmp 0x4016b3
push 4
push ebx
push edi
push str._s_size___zu_is_not_a_multiple_of__d_n
push 2
call fcn.004f33f4
add esp, 4
push eax
call fcn.00401010
push ebp
call fcn.004f62c0
add esp, 0x18
jmp 0x4016c6
push edi
push str.Failed_to_open__s_n
jmp 0x401466
push str.Unrecognized_option._n
jmp 0x4016b3
push str.Specify_a_shader_filename_n
push 2
call fcn.004f33f4
add esp, 4
push eax
call fcn.00401010
add esp, 8
mov eax, 1
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004eee25
add esp, 0xb8
ret