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

Disassembly:
sub esp, 0xc8
push ebx
mov ebx, dword [esp + 0xd8]
lea eax, [esp + 0x6c]
push ebp
mov ebp, dword [esp + 0xd4]
push esi
push edi
push ebx
push dword [esp + 0xe4]
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x64]
push ebp
push eax
lea eax, [esp + 0xa8]
mov dword [esp + 0x48], ecx
push eax
lea eax, [esp + 0xcc]
mov dword [esp + 0x3c], ebp
push eax
lea ecx, [esp + 0x58]
call fcn.005396b4
add esp, 0x18
cmp ebx, 8
jb 0x539562
shr ebx, 3
xor ecx, ecx
mov dword [esp + 0x14], ecx
xor ebp, ebp
cmp dword [esp + ecx + 0x5c], ebp
jbe 0x539547
lea eax, [esp + 0x78]
xor edx, edx
add eax, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + ecx + 0x40]
mov esi, eax
imul esi, ebx
mov dword [esp + 0x30], esi
lea ecx, [ecx]
xor edi, edi
test eax, eax
je 0x539536
mov esi, dword [0x589c50]
mov edx, dword [0x589c4c]
add esi, ecx
mov eax, dword [0x589c54]
add edx, ecx
mov dword [esp + 0x18], esi
add eax, ecx
mov esi, dword [esp + 0x24]
add ecx, dword [0x589c58]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], eax
mov esi, dword [esi]
add esi, dword [esp + 0x10]
add esi, dword [esp + 0x34]
mov dword [esp + 0x1c], ecx
jmp 0x5394e8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [edx]
imul edx, ebp
add edx, dword [eax]
mov eax, dword [esp + 0x18]
imul edx, dword [esp + 0x28]
mov eax, dword [eax]
imul eax, edi
add edx, eax
add edx, dword [ecx]
xor ecx, ecx
imul edx, ebx
test ebx, ebx
je 0x53951b
add edx, dword [esp + 0x38]
mov edi, edi
mov al, byte [esi + ecx]
mov byte [edx + ecx], al
inc ecx
cmp ecx, ebx
jb 0x539510
mov ecx, dword [esp + 0x14]
inc edi
mov edx, dword [esp + 0x2c]
add esi, ebx
mov eax, dword [esp + ecx + 0x40]
cmp edi, eax
jb 0x5394e0
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x30]
inc ebp
add edx, esi
mov dword [esp + 0x10], edx
cmp ebp, dword [esp + ecx + 0x5c]
jb 0x539490
add ecx, 4
mov dword [esp + 0x14], ecx
cmp ecx, 0x1c
jne 0x539464
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc8
ret
mov esi, dword [0x589c4c]
imul ebp, ebx
xor edx, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ebp
mov eax, dword [esp + edx + 0x40]
xor ebp, ebp
mov ecx, eax
mov dword [esp + 0x1c], eax
imul ecx, ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + edx + 0x5c]
mov dword [esp + 0x3c], ecx
test ecx, ecx
je 0x539699
mov dword [esp + 0x10], ebp
xor ecx, ecx
mov dword [esp + 0x14], ecx
test eax, eax
je 0x539682
mov edi, dword [esp + 0x10]
mov eax, dword [esp + edx + 0x78]
lea eax, [edi + eax*8]
mov edi, dword [0x589c54]
mov dword [esp + 0x18], eax
mov esi, dword [edx + esi]
mov ebx, dword [0x589c58]
mov dword [esp + 0x30], eax
mov eax, dword [0x589c50]
imul esi, ebp
mov eax, dword [edx + eax]
imul eax, ecx
add esi, dword [edx + edi]
imul esi, dword [esp + 0x28]
add eax, dword [edx + ebx]
mov ebx, dword [esp + 0xe4]
imul eax, ebx
add esi, eax
test ebx, ebx
je 0x53965f
mov edi, ebx
mov ebx, dword [esp + 0x30]
nop
mov edx, dword [esp + 0x34]
mov al, bl
and al, 7
mov cl, 7
sub cl, al
mov ebp, esi
mov eax, ebx
shr ebp, 3
add ebp, dword [esp + 0x38]
inc ebx
shr eax, 3
mov dl, byte [eax + edx]
mov eax, esi
shr dl, cl
and eax, 7
mov ecx, 7
sub ecx, eax
movzx eax, byte [ebp]
test dl, 1
jne 0x53963a
btr eax, ecx
jmp 0x53963d
bts eax, ecx
inc esi
mov byte [ebp], al
sub edi, 1
jne 0x539600
mov ebx, dword [esp + 0xe4]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov edi, dword [0x589c54]
mov eax, dword [esp + 0x18]
inc ecx
mov esi, dword [0x589c4c]
add eax, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
cmp ecx, dword [esp + 0x1c]
jb 0x5395c3
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
inc ebp
add dword [esp + 0x10], ecx
mov dword [esp + 0x20], ebp
cmp ebp, dword [esp + 0x3c]
jb 0x5395a0
add edx, 4
mov dword [esp + 0x24], edx
cmp edx, 0x1c
jne 0x539575
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc8
ret