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

Disassembly:
sub esp, 0x38
push esi
mov esi, ecx
push dword [esi + 4]
call fcn.005c867d
test eax, eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x38], eax
jne 0x5d17f1
mov byte [esi + 0x10], 1
jmp 0x5d1c18
mov eax, dword [esi + 4]
push ebx
push ebp
push edi
push dword [eax + 0xf0]
lea ecx, [esp + 0x30]
call fcn.005bf561
mov edi, dword [esp + 0x4c]
mov eax, dword [edi + 0x1c]
shr eax, 2
and al, 1
mov ecx, esi
mov byte [esp + 0x4c], al
call fcn.005c6804
test al, al
je 0x5d1844
mov ecx, dword [esi]
push str._n__
push edi
push str.native_thunk_for
add ecx, 0x18
call fcn.005a81ea
mov ecx, eax
call fcn.005a8578
mov ecx, eax
call fcn.005a81ea
push 0x30
push 4
pop ebx
push ebx
push 0x2d
mov ecx, esi
call fcn.005d1092
push ebx
push 0x34
push 1
mov ebp, 0x8b
push ebp
mov ecx, esi
call fcn.005d134f
push 0
mov ecx, esi
call fcn.005d0f8b
push 0
mov ecx, esi
call fcn.005d0f8b
push ebx
push 8
push 2
push 0x8d
mov ecx, esi
call fcn.005d134f
push 0x52
mov ecx, esi
call fcn.005d0b24
push 0
mov ecx, esi
call fcn.005d0f8b
push 0
mov ecx, esi
call fcn.005d0f8b
push ebx
push 0x50
push 6
mov ebx, 0xff
push ebx
mov ecx, esi
call fcn.005d134f
push 4
push 0x50
push 6
push ebx
mov ecx, esi
call fcn.005d134f
push fcn.005af638
call fcn.005c609a
sub eax, dword [esi + 0x44]
pop ecx
sub eax, 5
push eax
mov ecx, esi
call fcn.005d15b0
push 4
push 0x3c
push 2
push ebp
mov ecx, esi
call fcn.005d134f
cmp byte [esp + 0x4c], 0
je 0x5d19ab
push 4
push 0x38
push 1
push ebp
mov ecx, esi
call fcn.005d134f
push dword [edi + 0x10]
mov ecx, esi
push 1
push 0x3d
call fcn.005d1092
push 1
push 3
mov ecx, esi
call fcn.005d143e
mov eax, dword [esi + 0x44]
push 0
mov ecx, esi
mov dword [esp + 0x50], eax
call fcn.005d0f8b
push 0
mov ecx, esi
call fcn.005d0f8b
push 1
mov ecx, esi
call fcn.005d1553
mov cl, byte [esi + 0x44]
mov eax, dword [esp + 0x4c]
sub cl, al
mov byte [eax - 1], cl
push dword [edi + 0x10]
mov eax, dword [esi + 0x44]
push 1
push 0x2d
mov ecx, esi
mov dword [esp + 0x58], eax
call fcn.005d1092
push 0x51
mov ecx, esi
call fcn.005d0b24
push 2
push 0
push ebp
mov ecx, esi
call fcn.005d0791
push dword [edi + 0x18]
mov ecx, esi
push 0
push 5
call fcn.005d1092
push 0x50
mov ecx, esi
call fcn.005d0b24
cmp dword [edi + 0x14], 0
je 0x5d199d
push dword [edi + 0x10]
mov ecx, esi
push 1
call fcn.005d0fe8
mov cl, byte [esi + 0x44]
mov eax, dword [esp + 0x4c]
sub cl, al
mov byte [eax - 1], cl
jmp 0x5d19bf
cmp dword [edi + 0x14], 0
je 0x5d19bf
push 4
push 0x38
push 1
push ebp
mov ecx, esi
call fcn.005d134f
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x18]
mov eax, ecx
sub eax, dword [edi + 0x14]
mov dword [esp + 0x4c], edx
inc eax
test ecx, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], ecx
jle 0x5d1b10
mov edx, ecx
sub edx, eax
shl edx, 2
mov dword [esp + 0x14], edx
jmp 0x5d19f4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov edx, dword [edi + 0x30]
mov edx, dword [edx + ecx*4]
and dword [esp + 0x1c], 0
cmp ecx, eax
mov dword [esp + 0x18], edx
jl 0x5d1ab1
push ecx
push 1
push 0x3d
mov ecx, esi
call fcn.005d1092
push 1
push 3
mov ecx, esi
call fcn.005d143e
mov eax, dword [esi + 0x44]
mov edx, dword [esp + 0x18]
test edx, edx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x34]
mov eax, dword [ecx + eax]
je 0x5d1a8e
mov ecx, dword [esi]
cmp edx, dword [ecx + 0x80]
je 0x5d1a8e
cmp edx, dword [ecx + 0x58]
jne 0x5d1a4f
sar eax, 3
jmp 0x5d1a8e
cmp edx, dword [ecx + 0x78]
jne 0x5d1a5c
push eax
call fcn.00548b30
jmp 0x5d1a67
cmp edx, dword [ecx + 0x7c]
jne 0x5d1a6a
push eax
call fcn.0052f9c0
pop ecx
jmp 0x5d1a8e
cmp edx, dword [ecx + 0x74]
jne 0x5d1a8b
push eax
call fcn.005aa30c
fstp qword [esp + 0x20]
pop ecx
push dword [esp + 0x20]
mov ecx, esi
call fcn.005d0f8b
push dword [esp + 0x1c]
jmp 0x5d1a8f
and eax, 0xfffffff8
push eax
mov ecx, esi
call fcn.005d0f8b
push 1
mov ecx, esi
call fcn.005d1553
mov eax, dword [esi + 0x44]
mov cl, al
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
sub cl, al
mov byte [eax - 1], cl
mov ecx, dword [esp + 0x18]
mov eax, dword [esi]
cmp ecx, dword [eax + 0x74]
push 2
mov ecx, esi
jne 0x5d1adb
sub dword [esp + 0x50], 8
mov eax, dword [esp + 0x50]
add eax, 4
push eax
push 6
push ebx
call fcn.005d134f
push 2
mov ecx, esi
jmp 0x5d1ae0
sub dword [esp + 0x50], 4
push dword [esp + 0x50]
push 6
push ebx
call fcn.005d134f
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5d1afc
mov cl, byte [esi + 0x44]
sub cl, al
mov byte [eax - 1], cl
dec dword [esp + 0x10]
sub dword [esp + 0x14], 4
cmp dword [esp + 0x10], 0
jg 0x5d19ec
test byte [edi + 0x1f], 0x10
je 0x5d1b20
push dword [edi + 0x3c]
mov ecx, esi
call fcn.005d0f8b
mov ebx, dword [edi + 0x2c]
push 2
push 0
push 1
push ebp
mov ecx, esi
call fcn.005d134f
test byte [edi + 0x1e], 4
je 0x5d1b44
push 0xfffffffffffffff8
push 1
push 0x25
mov ecx, esi
call fcn.005d1092
mov eax, dword [edi + 0x40]
sub eax, dword [esi + 0x44]
mov ecx, esi
sub eax, 5
push eax
call fcn.005d15b0
push 4
push 0x34
push 1
push ebp
mov ecx, esi
call fcn.005d134f
mov ecx, dword [esi]
xor ebp, ebp
xor eax, eax
cmp ebx, dword [ecx + 0x74]
je 0x5d1b7a
push 0x50
mov ecx, esi
call fcn.005d0b24
push 4
pop eax
push 4
push eax
push 2
push 0x8d
mov ecx, esi
call fcn.005d134f
push 0x52
mov ecx, esi
call fcn.005d0b24
push fcn.005af6ac
call fcn.005c609a
sub eax, dword [esi + 0x44]
pop ecx
sub eax, 5
push eax
mov ecx, esi
call fcn.005d15b0
mov eax, dword [esi]
cmp ebx, dword [eax + 0x74]
je 0x5d1bbd
push 0x58
mov ecx, esi
call fcn.005d0b24
mov eax, dword [esi]
cmp ebx, dword [eax + 0x74]
je 0x5d1beb
cmp ebx, dword [eax + 0x58]
jne 0x5d1bd9
push ebp
push ebp
push 0xfb6
mov ecx, esi
call fcn.005d08cf
jmp 0x5d1beb
cmp ebx, dword [eax + 0x90]
jne 0x5d1beb
push 4
push ebp
mov ecx, esi
call fcn.005d0fe8
push 0x30
push 4
push 5
mov ecx, esi
call fcn.005d1092
push 0xc3
mov ecx, esi
call fcn.005d0b24
push edi
mov ecx, esi
call fcn.005c6f3b
lea ecx, [esp + 0x2c]
call fcn.005bf3a2
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x38
ret 4