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

Disassembly:
mov ecx, dword [0x7da588]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x30]
cmp eax, dword [ecx + 8]
jbe 0x5ba39b
sub esp, 0xb0
mov eax, dword [esp + 0xd4]
test eax, eax
je 0x5b997f
test eax, 0x200
jne 0x5b997f
lea ecx, [0x65a1a0]
mov edx, dword [esp + 0xcc]
jmp 0x5b99a9
mov ecx, dword [esp + 0xcc]
mov dword [esp], ecx
mov edx, dword [esp + 0xd0]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.004c5b70
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, ecx
mov ecx, eax
mov dword [esp + 0x84], edx
mov dword [esp + 0x3c], ecx
mov eax, dword [ecx + 0x4c]
mov dword [esp], edx
call eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x28]
mov ecx, dword [esp + 0xc8]
and ecx, 0x1f
mov dword [esp + 0x68], ecx
mov ebx, dword [esp + 4]
mov dword [esp + 0x48], ebx
mov ebp, dword [esp + 8]
mov dword [esp + 0x88], ebp
mov esi, dword [esp + 0x84]
mov dword [esp], esi
call eax
mov eax, dword [esp + 4]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x8c], ecx
mov edx, dword [esp + 0x68]
cmp edx, 0x17
jne 0x5b9a18
mov ebx, dword [esp + 0xc4]
mov ebp, dword [ebx + 4]
jmp 0x5b9a57
mov eax, dword [esp + 0xc0]
mov dword [esp], eax
mov ecx, dword [esp + 0xc4]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0xc8]
mov dword [esp + 8], edx
call fcn.004c3d20
mov ebp, dword [esp + 0xc]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0xc4]
test ebp, ebp
je 0x5b9a90
mov eax, dword [esp + 0xc0]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov ecx, dword [esp + 0xc8]
mov dword [esp + 8], ecx
call fcn.004c41a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
xor edx, edx
xor ebx, ebx
lea ebp, [0x7da440]
jmp 0x5b9c92
cmp edx, 0x14
ja 0x5b9aa7
lea eax, [edx - 0x12]
cmp eax, 1
jbe 0x5b9acc
cmp edx, 0x14
je 0x5b9ab1
jmp 0x5b9c47
cmp edx, 0x16
jbe 0x5b9acc
cmp edx, 0x17
jne 0x5b9ac3
mov eax, dword [ebx]
test eax, eax
setne al
mov ecx, eax
mov eax, dword [esp + 0xc8]
jmp 0x5b9aec
cmp edx, 0x1a
jne 0x5b9c47
mov eax, dword [esp + 0xc8]
test eax, 0x200
jne 0x5b9af0
test eax, 0x80
je 0x5b9ae5
mov ecx, dword [ebx]
jmp 0x5b9ae7
mov ecx, ebx
test ecx, ecx
setne cl
test cl, cl
je 0x5b9b3b
mov eax, dword [esp + 0xcc]
mov dword [esp], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x14], eax
call fcn.004c4ac0
jmp 0x5b9bf0
mov ecx, dword [esp + 0xd4]
mov edx, ecx
and ecx, 0x1f
mov dword [esp + 0x68], ecx
nop
cmp ecx, 0x14
ja 0x5b9b63
lea ebp, [ecx - 0x12]
cmp ebp, 1
jbe 0x5b9b8a
cmp ecx, 0x14
je 0x5b9b6d
jmp 0x5b9c0d
cmp ecx, 0x16
jbe 0x5b9b8a
cmp ecx, 0x17
jne 0x5b9b81
mov ecx, dword [esp + 0xd0]
mov ebp, dword [ecx]
test ebp, ebp
xchg ebp, ebx
setne bl
xchg ebp, ebx
jmp 0x5b9bc0
cmp ecx, 0x1a
jne 0x5b9c0d
test edx, 0x200
je 0x5b9b9b
mov ecx, dword [esp + 0xd0]
jmp 0x5b9bc6
test edx, 0x80
je 0x5b9bae
mov ecx, dword [esp + 0xd0]
mov ebp, dword [ecx]
jmp 0x5b9bb7
mov ecx, dword [esp + 0xd0]
mov ebp, ecx
test ebp, ebp
xchg ebp, ebx
setne bl
xchg ebp, ebx
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x5b9bf0
mov ebp, dword [esp + 0xcc]
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
call fcn.004c4ac0
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0
add esp, 0xb0
ret
lea eax, [0x5ea8c0]
mov dword [esp], eax
call fcn.0040d1f0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x13
lea ecx, [0x60ee30]
mov dword [eax], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 8], ecx
lea ecx, [0x5e2880]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004391b0
lea eax, [0x5ea8c0]
mov dword [esp], eax
call fcn.0040d1f0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x13
lea ecx, [0x60ee30]
mov dword [eax], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 8], ecx
lea ecx, [0x5e2880]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004391b0
mov esi, dword [esp + 0xac]
lea eax, [esi + 0xc]
mov esi, dword [esp + 0x64]
lea ecx, [esi - 1]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x98], ebp
test ecx, ecx
jle 0x5ba2d2
mov dword [esp + 0x64], ecx
mov dword [esp + 0xac], eax
mov esi, dword [eax + 8]
mov dword [esp + 0x68], esi
mov edi, esi
and esi, 0x1f
mov ecx, dword [eax + 4]
mov dword [esp + 0xa8], ecx
mov eax, dword [eax]
mov dword [esp + 0xa4], eax
cmp esi, 0x18
jne 0x5b9cdf
mov esi, dword [ecx]
mov ebp, dword [ecx + 4]
jmp 0x5b9cf7
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
call fcn.004c5a90
mov esi, dword [esp + 0xc]
mov ebp, dword [esp + 0x10]
mov dword [esp], 0
mov eax, dword [esp + 0xb8]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0xbc]
mov dword [esp + 8], ecx
lea edx, [0x657e9c]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ebp
lea ebx, [0x657e98]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 1
call fcn.00453b90
mov eax, dword [esp + 0x24]
mov dword [esp + 0x94], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x54], ecx
mov edx, dword [esp + 0x48]
mov dword [esp], edx
mov ebx, dword [esp + 0x88]
mov dword [esp + 4], ebx
call fcn.004c6640
mov eax, dword [esp + 0x10]
mov ecx, eax
and eax, 0x1f
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0xc]
nop
cmp eax, 0x16
jne 0x5b9da4
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.004c2840
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x70], edx
mov eax, dword [esp + 0xa4]
mov dword [esp], eax
mov ebp, dword [esp + 0xa8]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x68]
mov dword [esp + 8], esi
mov byte [esp + 0xc], 1
call fcn.004c2c90
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xb4]
mov dword [esp], edx
mov ebx, dword [esp + 0x94]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x54]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x70]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x18], ecx
mov esi, dword [esp + 0x30]
mov dword [esp + 0x1c], esi
call fcn.005b4f00
mov eax, dword [esp + 0x20]
test eax, eax
je 0x5b9fc0
mov ecx, dword [esp + 0x24]
je 0x5b9f1c
cmp dword [eax + 8], 0x28299e99
jne 0x5b9f16
lea edx, [0x658d74]
cmp eax, edx
jne 0x5b9f1c
mov eax, dword [ecx + 4]
mov ebx, dword [esp + 0x58]
lea ebp, [eax + ebx]
mov ecx, dword [ecx]
mov esi, dword [esp + 0x5c]
cmp esi, ebp
jb 0x5b9e6f
mov edi, dword [esp + 0x98]
jmp 0x5b9ec0
mov dword [esp + 0x60], eax
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0x98]
mov dword [esp], ecx
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
lea ecx, [0x5dd3e0]
mov dword [esp + 0x10], ecx
call fcn.00450060
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xa0]
mov ebx, dword [esp + 0x58]
mov esi, edx
mov edi, ebp
mov ebp, eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x44], esi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x80], edi
lea edx, [0x5dd3e0]
mov dword [esp], edx
sub ebp, ebx
sub esi, ebx
xchg esi, ebx
neg ebx
xchg esi, ebx
shl ebx, 3
sar esi, 0x1f
and esi, ebx
lea ebx, [edi + esi]
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.00412400
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x80]
jmp 0x5b9c81
lea edx, [0x658d74]
mov edx, dword [esp + 0x58]
inc edx
mov dword [esp + 0x60], edx
mov eax, dword [eax + 0x10]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x60]
cmp edx, ebx
jb 0x5b9f4a
mov ebp, dword [esp + 0x98]
jmp 0x5b9f99
mov dword [esp + 0x60], ecx
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x98]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x5dd3e0]
mov dword [esp + 0x10], eax
call fcn.00450060
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x60]
mov ebx, edx
mov edx, eax
mov eax, dword [esp + 0x9c]
lea esi, [ebp + ebx*8 - 4]
mov dword [esi], ecx
mov ecx, dword [0x7da640]
lea esi, [ebp + ebx*8 - 8]
test ecx, ecx
je 0x5b9fb9
call fcn.0046be80
mov dword [edi], eax
mov ecx, dword [esi]
mov dword [edi + 4], ecx
mov dword [esi], eax
jmp 0x5b9c81
mov eax, dword [esp + 0xc0]
mov dword [esp], eax
mov ecx, dword [esp + 0xc4]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0xc8]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0xa8]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x14], ebx
call fcn.004c3f40
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov byte [esp + 0xc], 1
call fcn.004c2c90
mov eax, dword [esp + 0x10]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x90], ecx
mov edx, dword [esp + 0x4c]
mov dword [esp], edx
mov ebx, dword [esp + 0x8c]
mov dword [esp + 4], ebx
call fcn.004c6640
mov eax, dword [esp + 0x10]
mov ecx, eax
and eax, 0x1f
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0xc]
nop
cmp eax, 0x16
jne 0x5ba083
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.004c2840
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x6c], edx
mov eax, dword [esp + 0xb4]
mov dword [esp], eax
mov ebp, dword [esp + 0x94]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x54]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x50]
mov dword [esp + 0xc], ebp
mov ebp, dword [esp + 0x90]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ecx
call fcn.005b4f00
mov eax, dword [esp + 0x20]
test eax, eax
je 0x5ba269
mov ecx, dword [esp + 0x24]
je 0x5ba1c5
cmp dword [eax + 8], 0x28299e99
jne 0x5ba1bf
lea edx, [0x658d74]
cmp eax, edx
jne 0x5ba1c5
mov eax, dword [ecx + 4]
mov ebx, dword [esp + 0x58]
lea ebp, [eax + ebx]
mov ecx, dword [ecx]
mov esi, dword [esp + 0x5c]
cmp esi, ebp
jb 0x5ba11e
mov edi, dword [esp + 0x98]
jmp 0x5ba16f
mov dword [esp + 0x60], eax
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0x98]
mov dword [esp], ecx
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
lea ecx, [0x5dd3e0]
mov dword [esp + 0x10], ecx
call fcn.00450060
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xa0]
mov ebx, dword [esp + 0x58]
mov esi, edx
mov edi, ebp
mov ebp, eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x40], esi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x7c], edi
lea edx, [0x5dd3e0]
mov dword [esp], edx
sub ebp, ebx
sub esi, ebx
xchg esi, ebx
neg ebx
xchg esi, ebx
shl ebx, 3
sar esi, 0x1f
and esi, ebx
lea ebx, [edi + esi]
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.00412400
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x7c]
jmp 0x5b9c81
lea edx, [0x658d74]
mov edx, dword [esp + 0x58]
inc edx
mov dword [esp + 0x60], edx
mov eax, dword [eax + 0x10]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x60]
cmp edx, ebx
jb 0x5ba1f3
mov ebp, dword [esp + 0x98]
jmp 0x5ba242
mov dword [esp + 0x60], ecx
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x98]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x5dd3e0]
mov dword [esp + 0x10], eax
call fcn.00450060
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x60]
mov ebx, edx
mov edx, eax
mov eax, dword [esp + 0x9c]
lea esi, [ebp + ebx*8 - 4]
mov dword [esi], ecx
mov ecx, dword [0x7da640]
lea esi, [ebp + ebx*8 - 8]
test ecx, ecx
je 0x5ba262
call fcn.0046be80
mov dword [edi], eax
mov ecx, dword [esi]
mov dword [edi + 4], ecx
mov dword [esi], eax
jmp 0x5b9c81
mov eax, dword [esp + 0xd8]
mov dword [esp], eax
mov ecx, dword [esp + 0xdc]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0xe0]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x20], ebx
call fcn.004c51d0
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x98]
jmp 0x5b9c81
mov eax, dword [esp + 0xcc]
mov dword [esp], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x14], eax
call fcn.004c4ac0
mov eax, dword [esp + 0x58]
test eax, eax
je 0x5ba37e
lea eax, [0x5e58c0]
mov dword [esp], eax
call fcn.0040d1f0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x58]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 8], ecx
mov ecx, dword [0x7da640]
test ecx, ecx
jne 0x5ba353
mov ecx, dword [esp + 0x98]
jmp 0x5ba361
call fcn.0046be70
mov ecx, dword [esp + 0x98]
mov dword [edi], ecx
mov dword [eax], ecx
lea ecx, [0x658d74]
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xe8], eax
add esp, 0xb0
ret
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0
add esp, 0xb0
ret
call fcn.0046aa70
jmp fcn.005b9940