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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x38]
cmp eax, dword [ecx + 8]
jbe 0x5b0b94
sub esp, 0xb8
mov ecx, dword [0xac501c]
mov edx, dword [str._n_____BEGIN]
mov ebx, dword [0xac5020]
cmp ecx, 1
jb 0x5b0b89
dec ebx
neg ebx
sar ebx, 0x1f
and ebx, 1
add edx, ebx
lea ebx, [ecx - 1]
mov ecx, dword [esp + 0xc0]
cmp ebx, ecx
jle 0x5b0b0b
xor eax, eax
test al, al
je 0x5b0a4a
mov edx, dword [0xac501c]
lea eax, [edx - 1]
cmp eax, ecx
ja 0x5b0b84
mov ebx, dword [esp + 0xc4]
sub ebx, edx
inc ebx
mov esi, ebx
neg ebx
sar ebx, 0x1f
and ebx, eax
sub ecx, edx
mov edx, dword [esp + 0xbc]
add ebx, edx
inc ecx
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
call fcn.005afd60
mov eax, dword [0xac500c]
mov ecx, dword [0xac5008]
mov dword [esp + 0x98], ecx
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x78], ebp
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
cmp esi, eax
jl 0x5b09af
mov dword [esp + 0x34], esi
sub esi, eax
mov ebp, dword [esp + 0x34]
cmp ebp, esi
jb 0x5b0b76
mov dword [esp + 0xb4], edi
mov dword [esp + 0x74], ecx
mov dword [esp + 0x70], ebx
mov dword [esp + 0xb0], edx
sub ebp, esi
sub ecx, esi
neg ecx
sar ecx, 0x1f
and ecx, esi
lea esi, [ecx + edi]
cmp ebp, eax
je 0x5b0a17
xor eax, eax
test al, al
je 0x5b09af
mov eax, dword [0xac500c]
mov ecx, dword [esp + 0x34]
sub ecx, eax
mov eax, dword [esp + 0x74]
cmp ecx, eax
ja 0x5b0b6f
mov dword [esp + 0x64], ecx
call fcn.0040cc40
mov eax, dword [esp]
mov dword [esp + 0xac], eax
lea ecx, [0x7c8240]
mov dword [esp], ecx
call fcn.0040c160
mov eax, dword [esp + 4]
mov dword [esp + 0xa8], eax
mov ecx, dword [0xaec8c0]
test ecx, ecx
jne 0x5b099b
mov ecx, dword [esp + 0xac]
mov dword [eax + 8], ecx
mov dword [esp], 0
mov eax, dword [esp + 0xb4]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x64]
mov dword [esp + 8], ecx
call fcn.0044dae0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xa8]
mov dword [edi + 4], ecx
mov ecx, dword [0xaec8c0]
test ecx, ecx
jne 0x5b0991
mov dword [edi], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0xb0]
jmp 0x5b0165
mov edi, dword [esp + 0xa8]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x88]
test eax, eax
je 0x5b0955
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x80], edx
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.005afd60
mov eax, dword [esp + 0x18]
mov dword [esp + 0x88], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x48], ecx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x4c], edx
nop
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x6c], ebx
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x68], ebp
mov esi, dword [esp + 0xc]
mov dword [esp + 0x94], esi
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
mov byte [esp + 0xc], 0x3a
call fcn.00402930
mov ecx, dword [esp + 0x10]
cmp ecx, 0xffffffff
je 0x5b0326
mov edx, dword [esp + 0x6c]
cmp ecx, edx
ja 0x5b0b6a
lea eax, [ecx + 1]
mov ebx, dword [esp + 0x68]
cmp eax, ebx
ja 0x5b0b63
mov dword [esp + 0x50], ecx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x94]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.004f2b00
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x50]
sub eax, ecx
dec eax
mov edx, eax
neg eax
sar eax, 0x1f
mov ebx, dword [esp + 0x78]
and ebx, eax
mov eax, dword [esp + 0x94]
add eax, ebx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x8c], ebx
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x54], ebp
mov dword [esp], eax
mov eax, dword [esp + 0x68]
sub eax, ecx
dec eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004f2b00
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [esp], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0044dae0
mov eax, dword [esp + 0xa8]
mov ecx, dword [eax + 8]
mov dword [esp + 0xa4], ecx
mov edx, dword [esp + 0xc]
mov dword [esp + 0xa0], edx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x78], ebx
mov dword [esp], 0
mov ebp, dword [esp + 0x8c]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x54]
mov dword [esp + 8], ebp
call fcn.0044dae0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea edx, [0x7a3f20]
mov dword [esp], edx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
call fcn.00411310
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x78]
mov dword [edi + 4], eax
mov eax, dword [0xaec8c0]
test eax, eax
jne 0x5b0315
mov eax, dword [esp + 0xa0]
mov dword [edi], eax
jmp 0x5b014f
mov eax, dword [esp + 0xa0]
call fcn.00466130
jmp 0x5b014f
mov edx, dword [esp + 0xa8]
mov ebx, dword [edx + 8]
test ebx, ebx
je 0x5b094e
mov ebx, dword [ebx]
test ebx, ebx
jne 0x5b0945
mov ecx, dword [0xac4ffc]
mov ebx, dword [str._n_____END]
mov ebp, dword [0xac5000]
cmp ecx, 1
jb 0x5b0b59
dec ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, 1
add ebx, ebp
lea ebp, [ecx - 1]
mov ecx, dword [esp + 0x2c]
cmp ebp, ecx
jle 0x5b0919
xor eax, eax
test al, al
je 0x5b08c3
mov ebx, dword [0xac4ffc]
dec ebx
xor eax, eax
test eax, eax
jl 0x5b0854
cmp ecx, ebx
jb 0x5b0b52
mov ebp, ecx
sub ecx, ebx
mov esi, dword [esp + 0x3c]
sub esi, ebx
mov dword [esp + 0x38], esi
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and esi, ebx
mov ebx, dword [esp + 0x80]
add esi, ebx
mov edx, dword [0xac500c]
mov edi, dword [esp + 0x64]
add edx, edi
cmp ecx, edx
jl 0x5b07ec
jb 0x5b0b4b
mov dword [esp + 0x58], eax
mov dword [esp + 0x30], edx
mov ebp, dword [esp + 0x38]
sub ebp, edx
mov dword [esp + 0x44], ebp
sub ecx, edx
mov dword [esp + 0x40], ecx
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, edx
add ebp, esi
mov dword [esp + 0x84], ebp
cmp edi, edx
jle 0x5b07a9
xor edi, edi
xchg edi, eax
test al, al
xchg edi, eax
je 0x5b045f
mov edi, dword [0xac500c]
mov ebp, dword [0xac5008]
cmp edx, edi
jl 0x5b07a2
mov dword [esp + 0x9c], ebp
sub edx, edi
mov ebp, dword [esp + 0x30]
cmp ebp, edx
jb 0x5b0b42
sub ebp, edx
mov eax, dword [esp + 0x38]
sub eax, edx
neg eax
sar eax, 0x1f
and edx, eax
lea eax, [edx + esi]
cmp ebp, edi
je 0x5b0776
xor eax, eax
test al, al
jne 0x5b04cb
mov eax, dword [esp + 0xbc]
mov dword [esp], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
call fcn.005b0ba0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], ebx
add esp, 0xb8
ret
mov eax, dword [esp + 0x84]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
call fcn.005afd60
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x5b0703
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x3c]
cmp ecx, edx
ja 0x5b0b3d
mov eax, dword [esp + 0x80]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.005afe90
mov eax, dword [0xacc818]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x5c], ecx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x90], edx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x60], ebx
cmp dword [eax + 0x140], 0xffffffff
jne 0x5b06f8
lea eax, [ecx + ecx*2]
mov ebp, eax
shl eax, 1
sar eax, 0x1f
shr eax, 0x1d
lea eax, [eax + ebp*2]
sar eax, 3
mov dword [esp + 0x28], eax
lea ecx, [0x79faa0]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.0044a490
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0xa8]
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], ecx
mov ebx, dword [0xaec8c0]
test ebx, ebx
jne 0x5b06eb
mov dword [edx + 0xc], eax
mov eax, dword [0xacc818]
mov ebx, dword [edx + 0xc]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x90]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x18], eax
call fcn.00513450
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x5b0678
mov ebx, dword [esp + 0xa8]
mov edx, dword [ebx + 0x14]
cmp edx, ecx
jb 0x5b0b38
mov dword [ebx + 0x10], ecx
mov edx, dword [0xac4ffc]
mov ebp, dword [esp + 0x58]
lea esi, [edx + ebp]
lea eax, [ebp + edx - 1]
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
jb 0x5b0b33
mov edx, dword [esp + 0x3c]
sub edx, esi
inc edx
mov ebx, edx
neg edx
sar edx, 0x1f
and eax, edx
mov edx, dword [esp + 0x80]
add eax, edx
mov dword [esp], eax
sub ecx, esi
lea eax, [ecx + 1]
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.005afd60
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0xa8]
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xd4], edx
add esp, 0xb8
ret
mov eax, dword [esp + 0xbc]
mov dword [esp], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
call fcn.005b0ba0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], ebx
add esp, 0xb8
ret
lea edi, [edx + 0xc]
call fcn.00466130
jmp 0x5b059a
shr ecx, 2
lea eax, [ecx + ecx*2]
jmp 0x5b055a
mov eax, dword [esp + 0xbc]
mov dword [esp], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
call fcn.005b0ba0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], ebx
add esp, 0xb8
ret
mov dword [esp], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
call fcn.004028f0
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x80]
jmp 0x5b045b
xor eax, eax
jmp 0x5b045b
mov dword [esp + 0x7c], esi
mov dword [esp], esi
mov eax, dword [esp + 0xb4]
mov dword [esp + 4], eax
mov dword [esp + 8], edi
call fcn.004028f0
movzx edi, byte [esp + 0xc]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x80]
mov ebp, dword [esp + 0x84]
mov esi, dword [esp + 0x7c]
jmp 0x5b0410
mov eax, dword [esp + 0xbc]
mov dword [esp], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
call fcn.005b0ba0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], ebx
add esp, 0xb8
ret
mov eax, dword [esp + 0xbc]
mov dword [esp], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
call fcn.005b0ba0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], ebx
add esp, 0xb8
ret
mov eax, dword [str._n_____END]
mov edx, dword [0xac4ffc]
mov ebx, dword [0xac5000]
mov ebp, dword [esp + 0x80]
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov esi, dword [esp + 0x3c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
call fcn.004f2f30
mov eax, dword [esp + 0x18]
mov ecx, dword [0xac4ffc]
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0xa8]
jmp 0x5b038e
mov eax, dword [esp + 0x80]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
call fcn.004028f0
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0xa8]
jmp 0x5b037d
mov ecx, dword [esp + 0x2c]
jmp 0x5b08c3
xor ebx, ebx
jmp 0x5b033a
mov dword [esp + 0xc8], 0
mov eax, dword [esp + 0xbc]
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0xd4], eax
add esp, 0xb8
ret
call fcn.00466130
jmp 0x5b013e
lea edi, [eax + 8]
mov eax, dword [esp + 0xac]
call fcn.00466130
jmp 0x5b00fd
mov eax, dword [esp + 0xbc]
mov dword [esp], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], eax
call fcn.005b0ba0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], ebx
add esp, 0xb8
ret
mov dword [esp], esi
mov eax, dword [esp + 0x98]
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
call fcn.004028f0
movzx eax, byte [esp + 0xc]
mov edx, dword [esp + 0xb0]
mov ebx, dword [esp + 0x70]
mov edi, dword [esp + 0xb4]
jmp 0x5b0099
mov eax, dword [str._n_____BEGIN]
mov edx, dword [0xac501c]
mov ebx, dword [0xac5020]
mov ebp, dword [esp + 0xbc]
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov esi, dword [esp + 0xc4]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
call fcn.004f2f30
mov eax, dword [esp + 0x18]
test eax, eax
jl 0x5b0acf
mov edx, dword [0xac501c]
add eax, edx
mov ecx, dword [esp + 0xc0]
cmp eax, ecx
ja 0x5b0b7f
mov esi, dword [esp + 0xc4]
sub esi, eax
sub ecx, eax
mov edi, esi
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and eax, esi
mov edx, dword [esp + 0xbc]
add eax, edx
mov esi, edi
mov ebx, eax
jmp 0x5b0012
mov dword [esp + 0xc8], 0
mov eax, dword [esp + 0xbc]
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0xd4], eax
add esp, 0xb8
ret
mov eax, dword [esp + 0xbc]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.004028f0
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0xc0]
jmp 0x5affda
call fcn.00466210
call fcn.004661f0
call fcn.004661f0
mov eax, edx
mov ecx, ebp
call fcn.00466210
mov eax, edx
call fcn.00466210
mov eax, ebx
call fcn.00466210
mov eax, 1
call fcn.00466210
mov ecx, ebx
call fcn.00466210
call fcn.004661f0
mov edx, eax
call fcn.004661f0
mov eax, esi
mov ecx, ebp
call fcn.00466210
call fcn.00466210
call fcn.00466210
mov eax, 1
call fcn.00466210
nop
call fcn.00464bd0
jmp fcn.005aff80