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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5bf6e4
sub esp, 0x7c
mov ecx, dword [0x7bee4c]
cmp dword [ecx + 0x140], 0xffffffff
jne 0x5bf45e
mov ecx, dword [esp + 0x84]
mov edx, ecx
shl ecx, 3
add ecx, 5
mov eax, 0xaaaaaaab
mov ebx, edx
imul ecx
lea edx, [edx + ebx*8 + 5]
sar edx, 2
sar ecx, 0x1f
sub edx, ecx
jmp 0x5bf47d
mov ecx, dword [esp + 0x84]
lea ebx, [ecx + 2]
mov eax, 0xaaaaaaab
imul ebx
lea edx, [ecx + edx + 2]
sar edx, 1
sar ebx, 0x1f
sub edx, ebx
shl edx, 2
mov dword [esp + 0x1c], edx
lea ecx, [0x607140]
mov dword [esp], ecx
mov eax, 0xea0ea0eb
mov ecx, edx
imul edx
add edx, ecx
sar edx, 6
mov ebx, ecx
sar ecx, 0x1f
sub edx, ecx
mov dword [esp + 0x40], edx
lea ecx, [edx + ebx*2 + 1]
mov dword [esp + 0x34], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.004475c0
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x40]
lea ebp, [ebx + edx*2]
mov esi, dword [esp + 0x34]
cmp edx, esi
ja 0x5bf6da
mov dword [esp + 0x78], ecx
mov dword [esp + 0x3c], ebp
lea eax, [esp + 0x54]
mov dword [esp], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 8], eax
call fcn.0044b040
mov eax, dword [0x7bee4c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [esp], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 4], eax
mov ebp, dword [esp + 0x1c]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x34]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
call fcn.004eeb90
mov eax, dword [esp + 0x40]
inc eax
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
mov ebx, ecx
sub ecx, edx
mov dword [esp + 0x40], ecx
lea ebp, [ecx + 1]
mov dword [esp + 0x20], ebp
mov esi, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, edx
mov edi, dword [esp + 0x78]
add ebp, edi
mov dword [esp + 0x74], ebp
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x4c]
jmp 0x5bf5b8
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
mov edx, ebx
mov ebx, dword [esp + 0x3c]
mov ebp, edi
mov edi, dword [esp + 0x78]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x30]
cmp edi, edx
jge 0x5bf67b
lea ebx, [edi + 0x46]
cmp edx, ebx
jl 0x5bf5cd
mov edx, ebx
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x28]
cmp ebx, esi
ja 0x5bf6d1
sub ecx, ebx
lea esi, [ecx + 1]
mov ecx, esi
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and esi, ebx
add esi, ebp
mov ebp, dword [esp + 0x34]
cmp edx, ebp
ja 0x5bf6c8
cmp edx, edi
jb 0x5bf6bf
sub edx, edi
mov ebp, dword [esp + 0x3c]
sub ebp, edi
inc ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and edi, ebp
mov ebp, dword [esp + 0x78]
add edi, ebp
cmp edx, ecx
jl 0x5bf625
mov edx, ecx
cmp edi, esi
je 0x5bf64d
mov dword [esp + 0x38], edx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
call fcn.0045f270
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x78]
lea esi, [edx + ebx]
cmp eax, 1
jle 0x5bf66e
mov ecx, dword [esp + 0x20]
cmp ecx, esi
jbe 0x5bf6b8
mov edi, dword [esp + 0x74]
mov byte [edi + esi], 0xa
lea esi, [edx + ebx + 1]
jmp 0x5bf588
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x74]
jmp 0x5bf588
mov ecx, dword [esp + 0x28]
cmp ecx, esi
ja 0x5bf6b1
mov dword [esp], 0
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
call fcn.0044aee0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
add esp, 0x7c
ret
mov edx, esi
call fcn.0045ea10
mov eax, esi
call fcn.0045e9d0
mov eax, edi
mov ecx, edx
call fcn.0045ea30
mov ecx, edx
mov edx, ebp
call fcn.0045ea10
mov eax, ebx
mov ecx, esi
call fcn.0045ea30
mov ecx, edx
mov edx, esi
call fcn.0045ea10
nop
call fcn.0045d540
jmp fcn.005bf410