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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x284]
cmp eax, dword [ecx + 8]
jbe 0x5b9156
sub esp, 0x304
mov ecx, dword [esp + 0x308]
mov edx, dword [ecx + 0x138]
mov eax, dword [ecx + 0x13c]
test edx, edx
je 0x5b8643
nop
movzx ebx, byte [0x7f8710]
test bl, bl
je 0x5b8609
mov dword [0x7f8714], edx
mov ebx, dword [0x81dcc0]
test ebx, ebx
jne 0x5b85fe
mov dword [0x7f8718], eax
jmp 0x5b8609
lea edi, [0x7f8718]
call fcn.00462500
mov dword [esp + 0x248], edx
mov dword [esp + 0x24c], eax
mov edx, dword [esp + 0x248]
test edx, edx
je 0x5b863b
nop
movzx ebx, byte [edx + 0xf]
mov ebp, ebx
and ebx, 0x1f
xchg ebp, eax
test al, 0x20
xchg ebp, eax
jne 0x5b8649
or ebx, 0x80
jmp 0x5b8649
xor ebx, ebx
xor edx, edx
xor eax, eax
jmp 0x5b8649
xor ebx, ebx
xor edx, edx
xor eax, eax
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0x1f
call fcn.004b2b70
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
and eax, 0x1f
mov dword [esp + 0x64], eax
cmp eax, 9
ja 0x5b869c
cmp eax, 7
jne 0x5b8680
mov ecx, dword [ecx]
xor ebx, ebx
jmp 0x5b86c2
cmp eax, 8
jne 0x5b868c
movzx ecx, byte [ecx]
xor ebx, ebx
jmp 0x5b86c2
cmp eax, 9
jne 0x5b911b
movzx ecx, word [ecx]
xor ebx, ebx
jmp 0x5b86c2
cmp eax, 0xa
jne 0x5b86a7
mov ecx, dword [ecx]
xor ebx, ebx
jmp 0x5b86c2
cmp eax, 0xb
jne 0x5b86b5
mov edx, dword [ecx]
mov ebx, dword [ecx + 4]
mov ecx, edx
jmp 0x5b86c2
cmp eax, 0xc
jne 0x5b911b
mov ecx, dword [ecx]
xor ebx, ebx
test ebx, ebx
sete dl
test ecx, ecx
sete bl
and edx, ebx
test dl, dl
jne 0x5b8bfe
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x308]
movzx ebx, byte [edx + 0x294]
test bl, bl
je 0x5b8723
lea edi, [esp + 0x68]
xor eax, eax
call fcn.00462768
mov ecx, dword [edx + 0x78]
mov esi, dword [edx + 0x7c]
lea ebx, [0x62ad80]
cmp ecx, ebx
jne 0x5b9105
lea edi, [esp + 0x68]
call fcn.00462a80
mov ecx, dword [esp + 0x84]
mov ebx, dword [esp + 0x24]
sub ebx, ecx
jmp 0x5b875e
lea edi, [esp + 0x148]
xor eax, eax
call fcn.00462764
mov ecx, dword [edx + 0x78]
mov esi, dword [edx + 0x7c]
lea ebx, [0x62aa00]
cmp ecx, ebx
jne 0x5b90ef
lea edi, [esp + 0x148]
call fcn.00462a58
mov ecx, dword [esp + 0x160]
mov ebx, dword [esp + 0x24]
sub ebx, ecx
mov dword [esp], edx
mov dword [esp + 4], ebx
call fcn.005b1960
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x308]
mov edx, dword [ecx + 0x2ac]
add edx, 0xfffffffc
cmp eax, edx
jbe 0x5b878c
mov edx, dword [0x7f8238]
xor ebx, ebx
jmp 0x5b87c4
mov edx, dword [ecx + 0x28c]
mov ebx, dword [ecx + 0x288]
mov ebp, dword [ecx + 0x290]
cmp edx, eax
jb 0x5b90e8
sub edx, eax
sub ebp, eax
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, eax
cmp edx, 3
jbe 0x5b90dc
mov ebx, dword [ebp + ebx]
xor edx, edx
test edx, edx
jne 0x5b8bec
mov dword [esp + 0x50], eax
mov dword [esp + 0x30], ebx
lea eax, [0x624940]
mov dword [esp], eax
call fcn.0040bcc0
mov eax, dword [esp + 4]
mov dword [esp + 0x240], eax
mov ecx, dword [esp + 0x30]
cmp ecx, 1
je 0x5b8888
cmp ecx, 2
je 0x5b885b
cmp ecx, 3
jne 0x5b8831
lea eax, [0x624940]
mov dword [esp], eax
call fcn.00409410
mov eax, dword [esp + 8]
lea ecx, [0x624940]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004b8200
mov eax, dword [esp + 8]
jmp 0x5b88b3
lea eax, [0x624940]
mov dword [esp], eax
call fcn.00409410
mov eax, dword [esp + 8]
lea ecx, [0x624940]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004b8200
mov eax, dword [esp + 8]
jmp 0x5b88b3
lea eax, [0x624940]
mov dword [esp], eax
call fcn.00409410
mov eax, dword [esp + 8]
lea ecx, [0x624940]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004b8200
mov eax, dword [esp + 8]
add eax, 0xfffffffc
jmp 0x5b88b3
lea eax, [0x624940]
mov dword [esp], eax
call fcn.00409410
mov eax, dword [esp + 8]
lea ecx, [0x624940]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004b8200
mov eax, dword [esp + 8]
add eax, 0xfffffff8
mov ecx, dword [esp + 0x50]
lea edx, [eax + ecx]
cmp ecx, edx
setb bl
test eax, eax
xchg ebp, ebx
seta bl
xchg ebp, ebx
xchg ebp, eax
cmp al, bl
xchg ebp, eax
jne 0x5b8b7a
mov ebx, dword [esp + 0x308]
mov ebp, dword [ebx + 0x2ac]
cmp ebp, ecx
jbe 0x5b88e7
cmp ebp, edx
jae 0x5b8952
mov dword [esp + 0x250], 0
mov dword [esp + 0x254], 0
lea eax, [0x5ff840]
mov dword [esp + 0x250], eax
lea eax, [0x68b6e4]
mov dword [esp + 0x254], eax
mov eax, dword [ebx + 0x2c0]
mov dword [esp], eax
lea eax, [esp + 0x250]
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
call fcn.004f01f0
mov dword [esp + 0x30c], 0
add esp, 0x304
ret
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edx
lea eax, [0x624940]
mov dword [esp], eax
mov ecx, dword [esp + 0x240]
mov dword [esp + 4], ecx
call fcn.00409410
mov eax, dword [esp + 8]
lea ecx, [0x624940]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004b8200
mov eax, dword [esp + 8]
mov dword [esp + 0x44], eax
lea ecx, [0x5ffa00]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00449ec0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x308]
mov edx, dword [ecx + 0x290]
mov ebx, dword [ecx + 0x288]
mov ebp, dword [esp + 0x34]
cmp edx, ebp
jb 0x5b90d5
mov esi, dword [esp + 0x50]
cmp esi, ebp
ja 0x5b90cc
sub edx, esi
neg edx
sar edx, 0x1f
and edx, esi
add edx, ebx
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x44]
cmp ebx, ebp
jl 0x5b89eb
mov ebx, ebp
mov dword [esp + 0x23c], eax
cmp eax, edx
je 0x5b8a06
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.00462e90
lea eax, [0x611e60]
mov dword [esp], eax
call fcn.0040bcc0
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x44]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov eax, dword [0x81dcc0]
test eax, eax
jne 0x5b8a37
mov eax, dword [esp + 0x23c]
mov dword [edi], eax
jmp 0x5b8a43
mov eax, dword [esp + 0x23c]
call fcn.00462500
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xffffffff
lea eax, [0x68bb80]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [0x68c8e0]
mov dword [esp + 8], eax
lea eax, [0x81da90]
mov dword [esp + 0xc], eax
lea eax, [0x5f1440]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x240]
mov dword [esp + 0x14], eax
call fcn.004b6e90
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x5b8b08
lea eax, [0x613560]
mov dword [esp], eax
call fcn.0040bcc0
mov eax, dword [esp + 4]
mov dword [esp + 0x244], eax
lea ecx, [0x624940]
mov dword [esp], ecx
mov edx, dword [esp + 0x240]
mov dword [esp + 4], edx
call fcn.00409410
mov eax, dword [esp + 8]
lea ecx, [0x624940]
mov edx, dword [esp + 0x244]
mov dword [edx], ecx
mov ecx, dword [0x81dcc0]
test ecx, ecx
jne 0x5b8aef
mov dword [edx + 4], eax
jmp 0x5b8af7
lea edi, [edx + 4]
call fcn.00462500
mov eax, dword [esp + 0x240]
mov ecx, dword [eax + 4]
xor ebx, ebx
jmp 0x5b8c4b
mov dword [esp + 0x250], 0
mov dword [esp + 0x254], 0
lea eax, [0x5ff840]
mov dword [esp + 0x250], eax
lea eax, [0x68b6ec]
mov dword [esp + 0x254], eax
mov eax, dword [esp + 0x308]
mov eax, dword [eax + 0x2c0]
mov dword [esp], eax
lea eax, [esp + 0x250]
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
call fcn.004f01f0
mov dword [esp + 0x30c], 0
add esp, 0x304
ret
mov dword [esp + 0x250], 0
mov dword [esp + 0x254], 0
lea eax, [0x5ff840]
mov dword [esp + 0x250], eax
lea eax, [0x68b6e4]
mov dword [esp + 0x254], eax
mov eax, dword [esp + 0x308]
mov eax, dword [eax + 0x2c0]
mov dword [esp], eax
lea eax, [esp + 0x250]
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
call fcn.004f01f0
mov dword [esp + 0x30c], 0
add esp, 0x304
ret
mov dword [esp + 0x30c], 0
add esp, 0x304
ret
mov dword [esp + 0x30c], 0
add esp, 0x304
ret
mov ecx, ebp
xchg ebp, ebx
setne bl
xchg ebp, ebx
mov dword [eax + 0xc], esi
lea esi, [esi + esi*2]
mov dword [edi + esi*4 - 0xc], ecx
mov dword [edi + esi*4 - 8], edx
lea esi, [edi + esi*4 - 4]
xchg ebp, eax
mov byte [esi], al
xchg ebp, eax
mov ebp, dword [esp + 0x4c]
lea ebx, [ebp + 1]
mov ebp, dword [esp + 0x40]
lea ecx, [ebp + 8]
mov eax, dword [esp + 0x240]
mov edx, dword [esp + 0x244]
cmp dword [eax + 8], ebx
jle 0x5b8dfb
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x308]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.005b1960
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x308]
mov edx, dword [ecx + 0x2ac]
add edx, 0xfffffffc
cmp eax, edx
jbe 0x5b8c91
mov ebx, dword [0x7f8238]
xor ebp, ebp
jmp 0x5b8cc8
mov ebx, dword [ecx + 0x28c]
mov ebp, dword [ecx + 0x288]
mov esi, dword [ecx + 0x290]
cmp ebx, eax
jb 0x5b90c5
sub ebx, eax
sub esi, eax
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and esi, eax
cmp ebx, 3
jbe 0x5b90b9
mov ebp, dword [esi + ebp]
xor ebx, ebx
test ebx, ebx
jne 0x5b8ded
test ebp, 1
je 0x5b8cdf
mov ebx, ebp
and ebp, 0xfffffffe
jmp 0x5b8ce1
mov ebx, ebp
mov dword [esp + 0x54], ebp
lea esi, [eax + 4]
cmp edx, esi
jae 0x5b8cf6
mov eax, dword [0x7f8238]
xor edx, edx
jmp 0x5b8d37
mov edx, dword [ecx + 0x28c]
mov edi, dword [ecx + 0x288]
mov ebp, dword [ecx + 0x290]
cmp edx, esi
jb 0x5b90b0
sub ebp, eax
sub edx, eax
add ebp, 0xfffffffc
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and esi, ebp
add edx, 0xfffffffc
cmp edx, 3
jbe 0x5b90a4
mov edx, dword [esi + edi]
mov ebp, dword [esp + 0x54]
xor eax, eax
test eax, eax
jne 0x5b8ddd
mov eax, dword [esp + 0x244]
mov esi, dword [eax + 0xc]
inc esi
mov edi, dword [eax + 8]
mov ecx, dword [eax + 0x10]
cmp ecx, esi
jb 0x5b8d5f
test ebx, 1
jmp 0x5b8c10
mov dword [esp + 0x60], ebx
mov dword [esp + 0x2c], edx
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x613160]
mov dword [esp + 0x10], eax
call fcn.0044a040
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x244]
mov dword [ebx + 0x10], edx
mov edx, dword [0x81dcc0]
test edx, edx
jne 0x5b8db8
mov dword [ebx + 8], eax
mov edx, dword [esp + 0x60]
test edx, 1
jmp 0x5b8dca
lea edi, [ebx + 8]
call fcn.00462500
mov edx, dword [esp + 0x60]
test edx, 1
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x54]
mov esi, ecx
mov edi, eax
mov eax, ebx
jmp 0x5b8c10
mov eax, dword [esp + 0x240]
mov edx, dword [esp + 0x244]
jmp 0x5b8dfb
mov eax, dword [esp + 0x240]
mov edx, dword [esp + 0x244]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x5b8e06
xor ecx, ecx
jmp 0x5b8e27
mov dword [esp + 0x30c], edx
add esp, 0x304
ret
mov ebp, dword [esp + 0x48]
lea ecx, [ebp + 1]
add ebx, 4
mov edx, dword [esp + 0x244]
mov eax, ebx
cmp ecx, 0x400
jge 0x5b8e06
mov dword [esp + 0x48], ecx
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x308]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.005b1960
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x308]
mov edx, dword [ecx + 0x2ac]
add edx, 0xfffffffc
cmp eax, edx
jbe 0x5b8e6c
mov edx, dword [0x7f8238]
xor ebx, ebx
jmp 0x5b8ea3
mov edx, dword [ecx + 0x28c]
mov ebx, dword [ecx + 0x288]
mov ebp, dword [ecx + 0x290]
cmp edx, eax
jb 0x5b909d
sub edx, eax
sub ebp, eax
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and eax, ebp
cmp edx, 3
jbe 0x5b9091
mov ebx, dword [eax + ebx]
xor edx, edx
test edx, edx
jne 0x5b8fcf
mov dword [esp + 0x28], ebx
lea edi, [esp + 0x280]
xor eax, eax
call fcn.00462795
mov ecx, dword [esp + 0x308]
mov edx, dword [ecx + 0xac]
mov ebp, dword [ecx + 0xb0]
mov dword [esp + 0x5c], ebp
mov esi, dword [esp + 0x3c]
xor edi, edi
jmp 0x5b8ff4
lea edi, [esp + 0x280]
call fcn.00462795
lea edi, [esp + 0x2ac]
lea esi, [esp + 0x280]
call fcn.00462c42
mov ecx, dword [esp + 0x2b0]
mov edx, dword [esp + 0x2b4]
mov ebp, dword [esp + 0x244]
mov esi, ecx
mov ecx, dword [ebp + 0x18]
inc ecx
mov edi, edx
mov edx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x1c]
cmp ebx, ecx
jae 0x5b8f90
mov dword [esp + 0x5c], edi
mov dword [esp + 0x238], esi
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x6131e0]
mov dword [esp + 0x10], eax
call fcn.0044a040
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x244]
mov dword [ebx + 0x1c], edx
mov edx, dword [0x81dcc0]
test edx, edx
jne 0x5b8f77
mov dword [ebx + 0x14], eax
jmp 0x5b8f7f
lea edi, [ebx + 0x14]
call fcn.00462500
mov ebp, ebx
mov esi, dword [esp + 0x238]
mov edi, dword [esp + 0x5c]
mov edx, eax
xor eax, eax
mov dword [ebp + 0x18], ecx
dec ecx
shl ecx, 4
mov ebx, dword [esp + 0x3c]
mov dword [edx + ecx], ebx
mov ebp, dword [esp + 0x28]
mov dword [edx + ecx + 4], ebp
mov dword [edx + ecx + 0xc], edi
mov ebp, dword [0x81dcc0]
lea edi, [edx + ecx + 8]
test ebp, ebp
jne 0x5b8fc1
mov dword [edx + ecx + 8], esi
jmp 0x5b8e14
mov eax, esi
call fcn.00462500
xor eax, eax
jmp 0x5b8e14
mov edx, dword [esp + 0x244]
jmp 0x5b8e06
add edx, 0x2c
mov ecx, dword [esp + 0x58]
inc ecx
mov ebp, dword [esp + 0x5c]
mov ebx, esi
mov esi, edi
mov edi, ecx
mov ecx, dword [esp + 0x308]
cmp edi, ebp
jge 0x5b8edf
mov dword [esp + 0x58], edi
lea edi, [esp + 0x2d8]
mov esi, edx
call fcn.00462c42
mov ecx, dword [esp + 0x2e4]
mov esi, ebx
mov ebx, dword [esp + 0x2e8]
mov edi, dword [esp + 0x3c]
xor eax, eax
mov dword [esp + 0x20], eax
xor eax, eax
jmp 0x5b9047
mov esi, dword [esp + 0x23c]
add esi, 0x28
inc ebp
mov edi, ecx
mov dword [esp + 0x20], ebp
mov ecx, esi
mov ebp, dword [esp + 0x5c]
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x20]
cmp ebp, ebx
jge 0x5b8fdb
mov dword [esp + 0x23c], ecx
lea edi, [esp + 0x258]
mov esi, ecx
call fcn.00462c4c
mov ecx, dword [esp + 0x3c]
cmp dword [esp + 0x278], ecx
jne 0x5b902c
lea edi, [esp + 0x280]
lea esi, [esp + 0x2d8]
call fcn.00462c42
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x3c]
jmp 0x5b8eeb
mov eax, 3
mov ecx, edx
call fcn.00462580
mov ecx, edx
call fcn.004625f0
mov eax, 3
mov ecx, edx
call fcn.00462580
mov eax, esi
mov ecx, edx
call fcn.004625f0
mov eax, 3
mov ecx, ebx
call fcn.00462580
mov ecx, ebx
call fcn.004625f0
mov eax, esi
mov ecx, ebp
call fcn.004625f0
mov ecx, ebp
call fcn.004625d0
mov eax, 3
mov ecx, edx
call fcn.00462580
mov ecx, edx
call fcn.004625f0
mov dword [esp], ecx
mov dword [esp + 4], ebx
lea eax, [0x5ff280]
mov dword [esp + 8], eax
call fcn.00409250
mov dword [esp], ecx
mov dword [esp + 4], ebx
lea eax, [0x5ff280]
mov dword [esp + 8], eax
call fcn.00409250
lea eax, [0x60d960]
mov dword [esp], eax
call fcn.0040bcc0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x12
lea ecx, [0x63b26b]
mov dword [eax], ecx
mov ecx, dword [esp + 0x64]
mov dword [eax + 8], ecx
lea ecx, [0x6055c0]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004351d0
nop
call fcn.004610f0
jmp fcn.005b85a0