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

Disassembly:
sub esp, 0xb8
mov eax, dword [0x886f80]
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.00460890
push 0x48
lea eax, [esp + 0x80]
push 0
push eax
call fcn.004e6e40
push 0
push 0x886008
push str._s:e:o:m:x:vd
xorps xmm0, xmm0
mov dword [esp + 0x2c], str.main
push ebp
push dword [esp + 0xe8]
movups xmmword [esp + 0x84], xmm0
mov dword [esp + 0x38], 0x5082f5
mov esi, 4
movups xmmword [esp + 0x74], xmm0
xor bl, bl
mov dword [esp + 0x3c], 0
movq qword [esp + 0x94], xmm0
mov dword [esp + 0x74], 0x1f
mov byte [esp + 0x84], 1
mov byte [esp + 0x90], 1
mov dword [esp + 0x98], 0x60002
call fcn.00487510
add esp, 0x20
cmp eax, 0xffffffff
je 0x4013d2
nop dword [eax]
dec eax
cmp eax, 0x77
ja case.0x401131.2
movzx eax, byte [eax + 0x40170c]
jmp dword [eax*4 + 0x4016e8]
mov esi, dword [0x88b0e4]
mov ecx, str.vertex
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401165
test dl, dl
je 0x401161
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401165
add eax, 2
add ecx, 2
test dl, dl
jne 0x401145
xor eax, eax
jmp 0x40116a
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401175
xor esi, esi
jmp 0x4013ad
mov ecx, str.tess_ctrl
mov eax, esi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4011a0
test dl, dl
je 0x40119c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4011a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x401180
xor eax, eax
jmp 0x4011a5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4011b1
lea esi, [eax + 1]
jmp 0x4013ad
mov ecx, str.tess_eval
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4011d8
test dl, dl
je 0x4011d4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4011d8
add eax, 2
add ecx, 2
test dl, dl
jne 0x4011b8
xor eax, eax
jmp 0x4011dd
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4011e9
lea esi, [eax + 2]
jmp 0x4013ad
mov ecx, str.geometry
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401210
test dl, dl
je 0x40120c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401210
add eax, 2
add ecx, 2
test dl, dl
jne 0x4011f0
xor eax, eax
jmp 0x401215
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401221
lea esi, [eax + 3]
jmp 0x4013ad
mov ecx, str.fragment
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401248
test dl, dl
je 0x401244
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401248
add eax, 2
add ecx, 2
test dl, dl
jne 0x401228
xor eax, eax
jmp 0x40124d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401259
lea esi, [eax + 4]
jmp 0x4013ad
mov ecx, str.compute
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401280
test dl, dl
je 0x40127c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401280
add eax, 2
add ecx, 2
test dl, dl
jne 0x401260
xor eax, eax
jmp 0x401285
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401400
lea esi, [eax + 5]
jmp 0x4013ad
mov eax, dword [0x88b0e4]
mov dword [esp + 0x14], eax
jmp 0x4013ad
mov eax, dword [0x88b0e4]
mov dword [esp + 0x18], eax
jmp 0x4013ad
mov byte [0x887ae0], 1
jmp 0x4013ad
mov byte [0x887ae1], 1
jmp 0x4013ad
push dword [0x88b0e4]
call fcn.004ed44a
add esp, 4
add eax, 0x60000
mov dword [esp + 0x78], eax
jmp 0x4013ad
push dword [0x88b0e4]
call fcn.004ed44a
add esp, 4
add eax, 0x10000
mov dword [section..data], eax
jmp 0x4013ad
mov edi, dword [0x88b0e4]
lea eax, [esp + 0x28]
push eax
push edi
call fcn.00461e10
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x401456
mov ebx, dword [esp + 0x28]
test bl, 3
jne 0x40142a
shr ebx, 2
call fcn.00496d50
push 0x88b020
push eax
push dword [esp + 0x1c]
push esi
push 0
push 0
push ebx
push ebp
call fcn.00488910
push ebp
mov edi, eax
call fcn.004ecb80
add esp, 0x24
test edi, edi
je 0x401423
push edi
call fcn.00497890
lea eax, [esp + 0x17]
push eax
lea eax, [esp + 0x5c]
push eax
push edi
call fcn.00496fe0
add esp, 0x10
cmp byte [0x887ae1], 0
je 0x401391
push 2
call fcn.004e9cb4
push eax
push edi
call fcn.00401db0
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 0x886008
push str._s:e:o:m:x:vd
push ebp
push dword [esp + 0xdc]
call fcn.00487510
add esp, 0x14
cmp eax, 0xffffffff
jne 0x401120
push 0x70
push 0x70
push dword [esp + 0x80]
push 0x88b020
call fcn.00468600
add esp, 0x10
mov byte [0x88b066], 0
test bl, bl
jne 0x40149b
push str.Specify_a_shader_filename_n
jmp 0x40147e
push esi
push str.Unknown_stage__s_n
push 2
call fcn.004e9cb4
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
mov eax, 1
jmp 0x40160c
push str.SPIR_V_to_NIR_failed_n
jmp 0x40147e
push 4
push ebx
push edi
push str._s_size___zu_is_not_a_multiple_of__d_n
push 2
call fcn.004e9cb4
add esp, 4
push eax
call fcn.00401010
push ebp
call fcn.004ecb80
add esp, 0x18
mov eax, 1
jmp 0x40160c
push edi
push str.Failed_to_open__s_n
push 2
call fcn.004e9cb4
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
mov eax, 1
jmp 0x40160c
push str.Unrecognized_option._n
push 2
call fcn.004e9cb4
add esp, 4
push eax
call fcn.00401010
add esp, 8
mov eax, 1
jmp 0x40160c
mov esi, 3
lea edi, [esp + 0xb4]
lea ebp, [esi + 2]
nop word [eax + eax]
mov ebx, dword [edi]
test ebx, ebx
je 0x4014e4
mov eax, esi
test esi, esi
js 0x4014e4
lea ecx, [edi - 0xc]
nop
mov edx, dword [ecx]
test edx, edx
jne 0x4014d0
sub ecx, 0xc
sub eax, 1
jns 0x4014c0
jmp 0x4014e4
lea eax, [esp + 0x13]
push eax
lea eax, [esp + 0x58]
push eax
push edx
push ebx
call fcn.00496d60
add esp, 0x10
sub edi, 0xc
dec esi
sub ebp, 1
jne 0x4014b0
mov eax, dword [esp + 0x78]
lea esi, [esp + 0x80]
mov dword [esp + 0x4c], eax
mov eax, dword [section..data]
mov dword [esp + 0x34], ebp
mov byte [esp + 0x38], 0
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], 2
mov dword [esp + 0x50], eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], 0x401040
nop
mov edi, dword [esi + 4]
test edi, edi
je 0x4015f8
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x3c]
push eax
push edi
call fcn.00473fe0
push edi
mov bl, al
call fcn.00461770
add esp, 0x14
test bl, bl
je 0x4016a8
cmp byte [0x887ae0], 0
je 0x4015ae
push 0
call fcn.00474c00
mov edi, eax
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x24]
push dword [esp + 0x20]
push edi
call fcn.00474fd0
mov bl, al
add esp, 0x14
test bl, bl
jne 0x40159d
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x401625
push edi
call fcn.00474f80
add esp, 4
test bl, bl
je 0x401644
mov ebx, dword [esi]
test ebx, ebx
je 0x4015f8
push 0x508388
push ebx
call fcn.004ea02b
mov edi, eax
add esp, 8
test edi, edi
je 0x40165e
push edi
push dword [esp + 0x20]
push 1
push dword [esp + 0x20]
call fcn.004ea2f4
push edi
call fcn.004e9f44
add esp, 0x14
cmp byte [esp + 0x20], 0
jne 0x4015f8
push dword [esp + 0x14]
call fcn.004ecb80
add esp, 4
inc ebp
add esi, 0xc
cmp ebp, 5
jbe 0x401530
call fcn.004607f0
xor eax, eax
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e5b77
add esp, 0xb8
ret
push eax
push str.DXIL:__s_n_n
push 2
call fcn.004e9cb4
add esp, 4
push eax
call fcn.00401010
push edi
call fcn.00474f80
add esp, 0x10
push str.Failed_to_validate_DXIL_n
push 2
call fcn.004e9cb4
add esp, 4
push eax
call fcn.00401010
add esp, 8
jmp 0x401687
call fcn.004e9b01
push dword [eax]
call fcn.004e9be1
add esp, 4
push eax
push ebx
push str.Failed_to_open__s___s_n
push 2
call fcn.004e9cb4
add esp, 4
push eax
call fcn.00401010
add esp, 0x10
cmp byte [esp + 0x20], 0
jne 0x401491
push dword [esp + 0x14]
call fcn.004ecb80
add esp, 4
mov eax, 1
jmp 0x40160c
push str.Failed_to_convert_to_DXIL_n
push 2
call fcn.004e9cb4
add esp, 4
push eax
call fcn.00401010
add esp, 8
cmp dword [esp + 0x18], 0
je 0x40160a
cmp byte [esp + 0x20], 0
jne 0x40160a
push dword [esp + 0x14]
call fcn.004ecb80
add esp, 4
jmp 0x40160a