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

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov eax, dword [ebx + 4]
push edi
mov edi, ecx
mov dword [edi + 4], eax
mov ecx, dword [ebx + 8]
mov dword [edi + 8], ecx
mov edx, dword [ebx + 0xc]
mov dword [edi + 0xc], edx
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x10], eax
mov cl, byte [ebx + 0x14]
mov byte [edi + 0x14], cl
mov dl, byte [ebx + 0x18]
mov byte [edi + 0x18], dl
mov al, byte [ebx + 0x19]
mov byte [edi + 0x19], al
mov ecx, dword [ebx + 0x1c]
mov dword [edi + 0x1c], ecx
mov edx, dword [ebx + 0x20]
mov dword [edi + 0x20], edx
mov eax, dword [ebx + 0x24]
mov dword [edi + 0x24], eax
mov cl, byte [ebx + 0x28]
lea edx, [ebx + 0x2c]
mov byte [edi + 0x28], cl
push edx
lea ecx, [edi + 0x2c]
call fcn.00410bf0
mov eax, dword [ebx + 0x38]
lea edx, [ebx + 0x40]
mov dword [edi + 0x38], eax
mov ecx, dword [ebx + 0x3c]
mov dword [edi + 0x3c], ecx
push edx
lea ecx, [edi + 0x40]
call fcn.004f81d0
lea eax, [ebx + 0x4c]
lea ecx, [edi + 0x4c]
push eax
call fcn.004f81d0
mov ecx, dword [ebx + 0x58]
lea eax, [ebx + 0x60]
mov dword [edi + 0x58], ecx
mov edx, dword [ebx + 0x5c]
lea ecx, [edi + 0x60]
mov dword [edi + 0x5c], edx
cmp eax, ecx
je 0x521ad6
lea edx, [esp + 0x1c]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
call fcn.00406890
lea eax, [ebx + 0x6c]
lea ebp, [edi + 0x6c]
cmp eax, ebp
je 0x521b31
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov esi, dword [ebp]
cmp eax, ecx
je 0x521b0d
cmp esi, dword [ebp + 4]
je 0x521b09
mov dl, byte [eax]
inc eax
mov byte [esi], dl
inc esi
cmp eax, ecx
jne 0x521aec
mov eax, dword [ebp + 4]
mov ecx, ebp
push eax
push esi
call fcn.00405c30
jmp 0x521b31
cmp eax, ecx
jne 0x521b1b
mov eax, dword [ebp + 4]
mov ecx, ebp
push eax
push esi
call fcn.00405c30
jmp 0x521b31
mov dl, byte [esp + 0x1c]
mov byte [esp + 0x1c], dl
lea edx, [esp + 0x1c]
push edx
push ecx
push eax
mov ecx, ebp
call fcn.00406a70
lea ebp, [ebx + 0x78]
lea esi, [edi + 0x78]
cmp ebp, esi
je 0x521c4c
mov edx, dword [ebp + 4]
mov ecx, dword [ebp]
mov dword [esp + 0x14], edx
sub edx, ecx
mov eax, 0x66666667
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esi]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 8]
sub edx, eax
mov eax, 0x66666667
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x10]
cmp eax, edx
jbe 0x521bac
mov edx, dword [esp + 0x14]
push edx
push ecx
push eax
mov ecx, esi
call fcn.00506280
mov ecx, esi
mov ebp, eax
call fcn.005061b0
mov eax, dword [esp + 0x10]
mov dword [esi], ebp
lea ecx, [eax + eax*4]
lea edx, [ebp + ecx*8]
mov dword [esi + 8], edx
jmp 0x521c41
mov edx, dword [esi + 4]
mov eax, dword [esi]
sub edx, eax
mov eax, 0x66666667
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x10]
cmp edx, eax
jb 0x521bf2
mov dl, byte [esp + 0x1c]
lea eax, [esp + 0x1c]
push 0
push eax
mov eax, dword [esi]
mov byte [esp + 0x24], dl
mov edx, dword [esp + 0x1c]
push eax
push edx
push ecx
call fcn.00450670
add esp, 0x14
mov dword [esp + 0x1c], eax
jmp 0x521c3d
lea eax, [esp + 0x1c]
lea edx, [edx + edx*4]
push eax
mov eax, dword [esi]
push eax
lea eax, [ecx + edx*8]
push eax
push ecx
call fcn.0051de30
mov eax, dword [esi + 4]
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esi]
push eax
sub eax, ecx
mov ecx, eax
mov eax, 0x66666667
push edx
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [edx + edx*4]
mov edx, dword [ebp]
lea eax, [edx + ecx*8]
push eax
call fcn.00512500
add esp, 0x20
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*8]
mov dword [esi + 4], eax
lea ecx, [ebx + 0x84]
push ecx
lea ecx, [edi + 0x84]
call fcn.00505b30
mov edx, dword [ebx + 0x90]
mov eax, edi
mov dword [edi + 0x90], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4