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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x2b4]
cmp eax, dword [ecx + 8]
jbe 0x5b90d0
sub esp, 0x334
lea eax, [0x5f63a0]
mov dword [esp], eax
call fcn.0040b6c0
mov eax, dword [esp + 4]
mov dword [esp + 0x6c], eax
mov ecx, dword [eax]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], 0
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov dword [esp + 4], edx
mov dword [esp], ecx
call fcn.004090a0
mov eax, dword [esp + 8]
lea ecx, [0x5f63a0]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004b3850
mov eax, dword [esp + 8]
mov dword [esp + 0x48], eax
lea edi, [esp + 0x80]
xor eax, eax
call fcn.0046134b
mov ecx, dword [esp + 0x338]
mov dword [esp], ecx
lea edx, [0x5d7fe0]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x33c]
mov dword [esp + 0xc], ebx
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x10], ebp
call fcn.005a9440
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x5b873f
mov ebx, dword [esp + 0x6c]
mov ebp, dword [ebx]
mov esi, dword [esp + 0x340]
cmp esi, ebp
jb 0x5b871e
mov esi, dword [esp + 0x33c]
mov eax, esi
add esi, ebp
mov ecx, ebx
mov ebx, dword [esp + 0x338]
cmp dword [ebx + 0x2ac], esi
jb 0x5b86fd
test ebp, ebp
je 0x5b86dc
mov byte [ebx + 0x29f], 1
mov ebp, dword [ecx]
movzx esi, word [ecx + 4]
mov edx, esi
movzx esi, word [ecx + 6]
mov dword [ebx + 0x18c], ebp
mov word [ebx + 0x190], dx
mov word [ebx + 0x192], si
mov edx, dword [ebx + 0x290]
mov ebp, dword [ebx + 0x288]
mov esi, dword [esp + 0x48]
add esi, eax
mov edi, ebp
mov ebp, dword [ecx]
lea ecx, [ebp + eax]
cmp edx, ecx
jb 0x5b90ca
cmp ecx, esi
jb 0x5b90c3
sub ecx, esi
mov dword [ebx + 0x198], ecx
sub edx, esi
mov dword [ebx + 0x19c], edx
mov ebp, dword [0x7e1c20]
mov eax, edx
neg edx
sar edx, 0x1f
and esi, edx
lea edx, [edi + esi]
test ebp, ebp
jne 0x5b86c6
mov dword [ebx + 0x194], edx
jmp 0x5b876d
lea edi, [ebx + 0x194]
mov ebp, eax
mov eax, edx
call fcn.004610d0
mov eax, ebp
jmp 0x5b876d
mov eax, dword [0x7bb138]
mov ecx, dword [0x7bb13c]
mov dword [esp + 0x344], eax
mov dword [esp + 0x348], ecx
add esp, 0x334
ret
mov eax, dword [0x7bb130]
mov ecx, dword [0x7bb134]
mov dword [esp + 0x344], eax
mov dword [esp + 0x348], ecx
add esp, 0x334
ret
mov eax, dword [0x7bb130]
mov ecx, dword [0x7bb134]
mov dword [esp + 0x344], eax
mov dword [esp + 0x348], ecx
add esp, 0x334
ret
mov eax, dword [0x7bb130]
mov ecx, dword [0x7bb134]
mov dword [esp + 0x344], eax
mov dword [esp + 0x348], ecx
add esp, 0x334
ret
mov ebx, dword [esp + 0x68]
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x20]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.005934a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test ecx, ecx
jne 0x5b8fa9
mov dword [esp + 0x5c], eax
cmp dword [eax + 0x28], 1
je 0x5b87a3
xor ecx, ecx
jmp 0x5b8806
lea edi, [esp + 0x284]
xor eax, eax
call fcn.00461324
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + 0x28]
mov esi, dword [ecx + 0x24]
test edx, edx
jbe 0x5b90ba
lea edi, [esp + 0x284]
call fcn.004616a8
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
lea edi, [esp + 0xc]
lea esi, [esp + 0x288]
call fcn.004617fc
call fcn.005959d0
mov eax, dword [esp + 0x34]
mov ecx, eax
mov eax, dword [esp + 0x5c]
test ecx, ecx
je 0x5b8f6d
mov dword [esp + 0x54], ecx
lea edi, [esp + 0xa8]
xor eax, eax
call fcn.0046133e
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx + 0x5c]
mov dword [esp], edx
call fcn.004f0930
mov ecx, dword [esp + 8]
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 4]
mov dword [esp + 0x58], edx
lea ebx, [0x5e4900]
mov dword [esp], ebx
shl ecx, 1
mov dword [esp + 0x3c], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.0044a5d0
mov ecx, dword [esp + 0xc]
nop
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x58]
xor eax, eax
xor esi, esi
jmp 0x5b8fce
mov dword [esp], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
call fcn.0044e1a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], ecx
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x4c]
mov dword [esp + 0xec], ecx
lea esi, [eax + 0x16c]
lea edi, [esp + 0xcc]
call fcn.0046182e
lea esi, [eax + 0x158]
lea edi, [esp + 0xb8]
call fcn.0046182e
lea esi, [eax + 0x60]
lea edi, [esp + 0x16c]
call fcn.0046172a
mov ecx, dword [esp + 0x16c]
mov edx, dword [esp + 0x170]
test edx, edx
je 0x5b88f9
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
jmp 0x5b88fd
xor edx, edx
xor ecx, ecx
mov ebx, dword [esp + 0x19c]
mov ebp, dword [esp + 0x1a0]
test ebp, ebp
je 0x5b894e
mov eax, dword [ebx]
mov ebx, dword [ebx + 4]
mov dword [esp], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
lea ecx, [0x60ba4e]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
call fcn.0044df90
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x54]
mov ebx, dword [esp + 0x190]
mov ebp, dword [esp + 0x194]
test ebp, ebp
je 0x5b899f
mov eax, dword [ebx]
mov ebx, dword [ebx + 4]
mov dword [esp], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
lea ecx, [0x60ba4e]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
call fcn.0044df90
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x54]
mov ebx, dword [esp + 0x178]
mov ebp, dword [esp + 0x17c]
test ebp, ebp
je 0x5b89ec
mov eax, dword [ebx]
mov ebx, dword [ebx + 4]
mov dword [esp], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
lea ecx, [0x60ba4e]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
call fcn.0044df90
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c8]
mov ebx, dword [esp + 0x1cc]
mov dword [esp], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
lea ecx, [0x60ba4e]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
call fcn.0044df90
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], ecx
mov eax, dword [esp + 0x54]
lea esi, [eax + 0xdc]
lea edi, [esp + 0xf0]
call fcn.0046172a
mov eax, dword [esp + 0xf0]
mov ecx, dword [esp + 0xf4]
test ecx, ecx
je 0x5b8a6d
mov ecx, dword [eax + 4]
mov eax, dword [eax]
jmp 0x5b8a71
xor ecx, ecx
xor eax, eax
mov edx, dword [esp + 0x120]
mov ebx, dword [esp + 0x124]
test ebx, ebx
je 0x5b8abe
mov ebx, dword [edx]
mov edx, dword [edx + 4]
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
lea eax, [0x60ba4e]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edx
call fcn.0044df90
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x114]
mov ebx, dword [esp + 0x118]
test ebx, ebx
je 0x5b8b0b
mov ebx, dword [edx]
mov edx, dword [edx + 4]
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
lea eax, [0x60ba4e]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edx
call fcn.0044df90
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0xfc]
mov ebx, dword [esp + 0x100]
test ebx, ebx
je 0x5b8b58
mov ebx, dword [edx]
mov edx, dword [edx + 4]
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
lea eax, [0x60ba4e]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edx
call fcn.0044df90
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14c]
mov ebx, dword [esp + 0x150]
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
lea eax, [0x60ba4e]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
call fcn.0044df90
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], ecx
mov eax, dword [esp + 0x338]
mov byte [eax + 0x2ab], 1
mov ecx, dword [eax + 0x2bc]
movzx ecx, byte [ecx + 0xc]
test cl, cl
je 0x5b8bca
xor ecx, ecx
jmp 0x5b8bfc
call fcn.005b90e0
mov eax, dword [esp]
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x5b8bde
xor eax, eax
jmp 0x5b8bfa
mov ecx, dword [esp + 0x5c]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00593c60
mov eax, dword [esp + 8]
test eax, eax
setne al
xor eax, 1
mov ecx, eax
mov byte [esp + 0x3b], cl
lea edi, [esp + 0x94]
xor eax, eax
call fcn.0046134b
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx]
mov ebx, dword [ecx + 4]
mov ebp, dword [ecx + 8]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
call fcn.005b9b40
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
lea edi, [esp + 0x94]
lea esi, [esp + 0xc]
call fcn.0046182e
lea edi, [esp + 0x80]
lea esi, [esp + 0x94]
call fcn.0046182e
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x5b8cd1
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
test edx, edx
je 0x5b8c7c
mov edx, dword [edx + 4]
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ebx
mov eax, dword [esp + 0x338]
mov ecx, dword [eax + 0x2c0]
mov dword [esp], ecx
lea ecx, [0x61a852]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x28
lea edx, [esp + 0x78]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 1
call fcn.004ea910
mov ecx, dword [esp + 0x338]
xor eax, eax
jmp 0x5b8d88
mov ecx, dword [esp + 0x338]
mov edx, dword [ecx + 0x2bc]
movzx edx, byte [edx + 0xd]
test dl, dl
je 0x5b8ced
xor eax, eax
jmp 0x5b8d88
mov eax, dword [esp + 0x84]
mov dword [esp], eax
call fcn.004b6d60
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
mov eax, dword [esp + 0x338]
mov dword [esp], eax
lea ecx, [esp + 0x70]
mov dword [esp + 4], ecx
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
call fcn.005b7c80
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jbe 0x5b909f
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov ebx, dword [esp + 0x88]
cmp dword [esp + 0x8c], ecx
je 0x5b8d6c
xor eax, eax
jmp 0x5b8d81
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.00402990
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x338]
mov edx, dword [esp + 0x80]
mov dword [esp + 0xe8], edx
lea edi, [esp + 0x1e8]
mov edx, eax
xor eax, eax
call fcn.00461329
lea edi, [esp + 0x1e8]
mov esi, dword [esp + 0x5c]
call fcn.004617d4
lea edi, [esp + 0x220]
lea esi, [esp + 0x80]
call fcn.0046182e
mov byte [esp + 0x234], dl
lea edi, [esp + 0x238]
lea esi, [esp + 0xa8]
call fcn.004617ac
movzx ecx, byte [esp + 0x3b]
mov byte [esp + 0x280], cl
mov ecx, dword [esp + 0x338]
mov edx, dword [ecx + 0x1a4]
lea ebx, [edx + 1]
mov ebp, dword [ecx + 0x1a0]
mov esi, ecx
mov ecx, dword [ecx + 0x1a8]
cmp ecx, ebx
jae 0x5b8e6d
lea eax, [0x5fae80]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebx
call fcn.0044a7d0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x338]
mov dword [ebx + 0x1a8], edx
mov edx, dword [0x7e1c20]
test edx, edx
jne 0x5b8e5a
mov dword [ebx + 0x1a0], eax
jmp 0x5b8e65
lea edi, [ebx + 0x1a0]
call fcn.004610d0
mov esi, ebx
mov edx, ecx
mov ebp, eax
xor eax, eax
lea ecx, [edx + 1]
mov dword [esi + 0x1a4], ecx
mov ecx, dword [0x7e1c20]
imul edx, edx, 0x9c
lea edi, [ebp + edx]
test ecx, ecx
jne 0x5b8e98
lea esi, [esp + 0x1e8]
call fcn.004616da
jmp 0x5b8eb5
lea eax, [0x5fae80]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x1e8]
mov dword [esp + 8], eax
call fcn.004100e0
lea eax, [0x5fad80]
mov dword [esp], eax
call fcn.0040b6c0
mov eax, dword [esp + 4]
mov dword [esp + 0x68], eax
lea ecx, [0x5dff00]
mov dword [esp], ecx
call fcn.0040b6c0
mov eax, dword [esp + 4]
mov dword [eax], 1
mov dword [eax + 4], 3
mov dword [eax + 8], 6
mov dword [eax + 0xc], 1
mov dword [eax + 0x10], 4
mov dword [eax + 0x14], 1
mov dword [eax + 0x18], 0x137
mov dword [eax + 0x1c], 2
mov dword [eax + 0x20], 4
mov dword [eax + 0x24], 1
mov ecx, dword [esp + 0x5c]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xa
mov dword [esp + 0xc], 0xa
lea eax, [0x5d57e0]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x14], ecx
call fcn.005946a0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
test edx, edx
je 0x5b8760
jmp 0x5b901a
lea eax, [0x5ec160]
mov dword [esp], eax
call fcn.0040b6c0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x21
lea ecx, [0x618637]
mov dword [eax], ecx
lea ecx, [0x6681f8]
mov dword [esp + 0x344], ecx
mov dword [esp + 0x348], eax
add esp, 0x334
ret
mov dword [esp + 0x344], edx
mov dword [esp + 0x348], ebx
add esp, 0x334
ret
mov byte [esi + ecx + 1], dl
inc eax
add esi, 2
mov edx, dword [esp + 0x40]
mov ebp, dword [esp + 0x58]
cmp eax, edx
jge 0x5b8875
movzx edi, byte [eax + ebp]
xchg edi, eax
mov byte [esp + 0x3a], al
xchg edi, eax
xchg edi, eax
shr al, 4
xchg edi, eax
xchg edi, eax
movzx eax, al
xchg edi, eax
lea ebp, [0x6106a0]
movzx edi, byte [ebp + edi]
cmp esi, ebx
jae 0x5b90b1
xchg edi, eax
mov byte [ecx + esi], al
xchg edi, eax
lea edi, [esi + 1]
movzx edx, byte [esp + 0x3a]
and edx, 0xf
movzx edx, byte [edx + ebp]
cmp ebx, edi
ja 0x5b8fbe
jmp 0x5b90a8
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], ecx
lea eax, [0x5f1f20]
mov dword [esp], eax
call fcn.0040b6c0
mov eax, dword [esp + 4]
mov dword [eax], 0
mov ecx, dword [esp + 0x64]
mov dword [esp], ecx
mov edx, dword [esp + 0x60]
mov dword [esp + 4], edx
lea ebx, [0x5e9b00]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
call fcn.00468ad0
movzx eax, byte [esp + 0x10]
test al, al
je 0x5b9082
mov dword [esp + 0x344], 0
mov dword [esp + 0x348], 0
add esp, 0x334
ret
mov eax, dword [esp + 0x64]
mov dword [esp + 0x344], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x348], eax
add esp, 0x334
ret
xor eax, eax
mov ecx, eax
call fcn.00461150
mov eax, edi
mov ecx, ebx
call fcn.00461150
mov eax, esi
mov ecx, ebx
call fcn.00461150
xor eax, eax
mov ecx, eax
call fcn.00461150
mov eax, esi
call fcn.004611c0
call fcn.004611a0
nop
call fcn.0045fcc0
jmp fcn.005b8540