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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5d4c10
sub esp, 0x6c
mov ecx, dword [esp + 0x70]
mov dword [ecx + 0x1b4], 0
mov ebx, dword [0xe996c0]
test ebx, ebx
jne 0x5d49cd
mov dword [ecx + 0x1b0], 0
jmp 0x5d49da
lea edi, [ecx + 0x1b0]
xor eax, eax
call fcn.0045efc0
mov ebx, dword [esp + 0x78]
mov dword [ecx + 0x1bc], ebx
mov ebp, dword [esp + 0x7c]
mov dword [ecx + 0x1c0], ebp
mov eax, ebp
mov ebp, dword [0xe996c0]
test ebp, ebp
jne 0x5d4a06
mov ebp, dword [esp + 0x74]
mov dword [ecx + 0x1b8], ebp
jmp 0x5d4a1d
lea edi, [ecx + 0x1b8]
mov edx, eax
mov eax, dword [esp + 0x74]
call fcn.0045efc0
mov eax, edx
mov ebp, dword [esp + 0x74]
lea esi, [ecx + 0x1b0]
mov dword [esp + 0x4c], esi
xor edx, edx
jmp 0x5d4a6b
inc dword [edx + 0x184]
movzx ebx, byte [edx + 0x180]
lea ebp, [ebx + 4]
xchg ebp, eax
mov byte [edx + 0x180], al
xchg ebp, eax
mov byte [esp + 0x3c], bl
lea ecx, [edx + ecx*8]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
mov dword [ecx], ebx
mov dword [ecx + 4], ebp
mov ecx, edx
mov ebx, dword [esp + 0x78]
mov ebp, dword [esp + 0x74]
mov esi, dword [esp + 0x4c]
mov edx, eax
mov eax, dword [esp + 0x7c]
cmp ebx, edx
jle 0x5d4bbc
mov dword [esp + 0x20], edx
lea edi, [esp + 0x58]
call fcn.0045f59e
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x190]
mov dword [esp + 0x54], ecx
mov ebx, dword [ecx]
lea edi, [esp]
lea esi, [esp + 0x58]
call fcn.0045f59e
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x54]
call ebx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
movzx eax, byte [esp + 0x36]
test al, al
jne 0x5d4ae8
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
movzx eax, byte [esp + 0x31]
test al, 8
sete al
jmp 0x5d4aea
xor eax, eax
test al, al
je 0x5d4b17
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x184]
test ecx, ecx
jle 0x5d4b1b
mov dword [esp], eax
call fcn.005d45a0
movzx eax, byte [esp + 4]
test al, al
je 0x5d4bad
mov eax, dword [esp + 0x70]
jmp 0x5d4b1b
mov eax, dword [esp + 0x70]
movzx ecx, byte [eax + 0x180]
lea ebx, [ecx - 0x80]
neg ebx
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and ecx, ebx
lea ecx, [eax + ecx + 0x100]
mov ebx, dword [esp + 0x7c]
mov edx, eax
mov eax, dword [esp + 0x20]
mov esi, ebx
sub ebx, eax
neg ebx
sar ebx, 0x1f
and ebx, eax
mov edi, eax
mov eax, dword [esp + 0x74]
add ebx, eax
movzx eax, byte [esp + 0x45]
cmp eax, ebp
jl 0x5d4b5f
mov eax, ebp
cmp ecx, ebx
je 0x5d4b87
mov dword [esp + 0x28], eax
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call fcn.0045f7b0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x70]
mov esi, dword [esp + 0x7c]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ebx
add eax, edi
mov ecx, dword [edx + 0x184]
movzx ebx, byte [esp + 0x3e]
test bl, bl
ja 0x5d4bf3
jmp 0x5d4a2b
mov dword [esp + 0x80], 0xffffffff
add esp, 0x6c
ret
mov dword [esp + 0x80], 0
add esp, 0x6c
ret
mov eax, ebp
lea ebp, [edx + ecx*8]
mov dword [esp + 0x50], ebp
mov ebp, dword [eax]
mov dword [esp + 0x24], ebp
mov ebp, dword [eax + 4]
mov eax, ebp
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x50]
mov dword [esi], ebp
mov dword [esi + 4], eax
dec ecx
mov eax, edi
mov esi, dword [esp + 0x7c]
test ecx, ecx
jle 0x5d4c07
lea ebp, [edx + ecx*8 - 8]
mov edi, eax
lea eax, [edx + ecx*8 - 6]
cmp byte [eax], bl
ja 0x5d4bcb
jmp 0x5d4c09
mov edi, eax
mov eax, edi
jmp 0x5d4a2b
call fcn.0045dbb0
jmp fcn.005d4990