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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0xcc]
cmp eax, dword [ecx + 8]
jbe 0x5d1985
sub esp, 0x14c
movzx edx, word [esp + 0x150]
movzx ebx, word [esp + 0x152]
movzx ebp, word [esp + 0x156]
mov eax, dword [esp + 0x158]
mov ecx, dword [esp + 0x168]
cmp ecx, eax
jl 0x5d1918
jb 0x5d197f
mov word [esp + 0x66], dx
mov esi, ebp
mov ebp, dword [esp + 0x16c]
sub ebp, eax
sub ecx, eax
mov edi, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and eax, ebp
mov ebp, dword [esp + 0x164]
add ebp, eax
mov eax, ebx
mov ebx, dword [esp + 0x160]
mov edx, dword [esp + 0x15c]
test edx, edx
je 0x5d18d0
mov word [esp + 0x6a], ax
mov word [esp + 0x68], si
mov dword [esp + 0x6c], ecx
lea ecx, [0x785b9c]
cmp edx, ecx
jne 0x5d1575
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x78], ecx
mov edx, dword [ebx]
lea esi, [esp + 0x150]
mov ebx, edi
lea edi, [esp]
call fcn.004664ce
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
call fcn.005d1a00
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
movzx ebx, word [esp + 0x38]
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x70], ebp
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x88], ebp
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], edx
mov word [esp + 0xb8], bx
lea eax, [0x6c0b60]
mov dword [esp], eax
lea eax, [esp + 0xac]
mov dword [esp + 4], eax
call fcn.004095e0
mov eax, dword [esp + 8]
movzx esi, word [esp + 0x68]
lea ecx, [0x7859bc]
mov edx, dword [esp + 0x70]
mov ebx, eax
mov ebp, dword [esp + 0x88]
movzx eax, word [esp + 0x6a]
jmp 0x5d18d8
mov dword [esp + 0x78], edi
lea ecx, [0x785bb0]
cmp edx, ecx
je 0x5d1810
lea ecx, [0x785bc4]
cmp edx, ecx
jne 0x5d1657
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x78], ecx
mov edx, dword [ebx]
lea esi, [esp + 0x150]
mov ebx, edi
lea edi, [esp]
call fcn.004664ce
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
call fcn.005d1ca0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
movzx ebx, word [esp + 0x38]
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x70], ebp
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x88], ebp
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], edx
mov word [esp + 0xa8], bx
lea eax, [0x6c0b60]
mov dword [esp], eax
lea eax, [esp + 0x9c]
mov dword [esp + 4], eax
call fcn.004095e0
mov eax, dword [esp + 8]
movzx esi, word [esp + 0x68]
lea ecx, [0x7859bc]
mov edx, dword [esp + 0x70]
mov ebx, eax
mov ebp, dword [esp + 0x88]
movzx eax, word [esp + 0x6a]
jmp 0x5d18d8
lea ecx, [0x785bd8]
cmp edx, ecx
jne 0x5d1730
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x74], ecx
mov edx, dword [ebx + 0xc]
mov ebx, dword [ebx]
lea esi, [esp + 0x150]
lea edi, [esp]
call fcn.004664ce
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x2c], eax
call fcn.005d22d0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
movzx ebx, word [esp + 0x3c]
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x70], ebp
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
mov word [esp + 0x98], bx
lea eax, [0x6c0be0]
mov dword [esp], eax
lea eax, [esp + 0x8c]
mov dword [esp + 4], eax
call fcn.004095e0
mov eax, dword [esp + 8]
movzx esi, word [esp + 0x68]
lea ecx, [0x7859e4]
mov edx, dword [esp + 0x70]
mov ebx, eax
mov ebp, dword [esp + 0x88]
movzx eax, word [esp + 0x6a]
jmp 0x5d18d8
lea ecx, [0x785bec]
cmp edx, ecx
je 0x5d1747
xor ecx, ecx
xor edx, edx
xor ebx, ebx
xor ebp, ebp
jmp 0x5d18d8
mov esi, ebx
lea edi, [esp + 0xbc]
call fcn.004664c4
lea edi, [esp + 0x104]
xor eax, eax
call fcn.00465fe7
lea edi, [esp]
lea esi, [esp + 0x150]
call fcn.004664ce
lea edi, [esp + 0x14]
lea esi, [esp + 0xbc]
call fcn.004664c4
mov dword [esp + 0x2c], ebp
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x34], ecx
call fcn.005d26e0
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x70], ecx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x88], edx
lea edi, [esp + 0x104]
lea esi, [esp + 0x38]
call fcn.004664a6
lea edi, [esp + 0x128]
lea esi, [esp + 0x104]
call fcn.004664a6
lea ecx, [0x6ca680]
mov dword [esp], ecx
lea ecx, [esp + 0x128]
mov dword [esp + 4], ecx
call fcn.004095e0
mov eax, dword [esp + 8]
movzx esi, word [esp + 0x68]
lea ecx, [0x7859f8]
mov edx, dword [esp + 0x70]
mov ebx, eax
mov ebp, dword [esp + 0x88]
movzx eax, word [esp + 0x6a]
jmp 0x5d18d8
mov esi, ebx
lea edi, [esp + 0x7c]
call fcn.004664e2
lea edi, [esp + 0xd4]
xor eax, eax
call fcn.00465fea
lea edi, [esp]
lea esi, [esp + 0x150]
call fcn.004664ce
lea edi, [esp + 0x14]
lea esi, [esp + 0x7c]
call fcn.004664e2
mov dword [esp + 0x20], ebp
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x28], ecx
call fcn.005d2000
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x70], ecx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x88], edx
lea edi, [esp + 0xd4]
lea esi, [esp + 0x2c]
call fcn.004664c4
lea edi, [esp + 0xec]
lea esi, [esp + 0xd4]
call fcn.004664c4
lea ecx, [0x6c7c00]
mov dword [esp], ecx
lea ecx, [esp + 0xec]
mov dword [esp + 4], ecx
call fcn.004095e0
mov eax, dword [esp + 8]
movzx esi, word [esp + 0x68]
lea ecx, [0x7859d0]
mov edx, dword [esp + 0x70]
mov ebx, eax
mov ebp, dword [esp + 0x88]
movzx eax, word [esp + 0x6a]
jmp 0x5d18d8
xor ecx, ecx
xor edx, edx
xor ebx, ebx
xor ebp, ebp
movzx edi, word [esp + 0x66]
mov word [esp + 0x170], di
mov word [esp + 0x172], ax
mov word [esp + 0x174], si
mov dword [esp + 0x178], ecx
mov dword [esp + 0x17c], ebx
mov dword [esp + 0x180], edx
mov dword [esp + 0x184], ebp
add esp, 0x14c
ret
lea eax, [0x6a9700]
mov dword [esp], eax
call fcn.0040be50
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1a
lea ecx, [0x6f9c2e]
mov dword [eax], ecx
mov dword [esp + 0x170], 0
mov word [esp + 0x174], 0
mov dword [esp + 0x178], 0
mov dword [esp + 0x17c], 0
lea ecx, [0x785138]
mov dword [esp + 0x180], ecx
mov dword [esp + 0x184], eax
add esp, 0x14c
ret
call fcn.00465e70
nop
call fcn.004649b0
jmp fcn.005d1400