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

Disassembly:
sub esp, 0x60
mov eax, dword [0x59c6b8]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x7c]
cdq
idiv dword [esp + 0x84]
push ebx
mov ebx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x6c]
push ebp
mov ebp, dword [esp + 0x78]
push esi
push edi
mov edi, dword [esp + 0x98]
push ebp
push ebx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x54], edx
cdq
idiv ebx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x30], eax
call fcn.004a30a0
mov dword [esp + 0x3c], eax
lea eax, [ebp*4]
push eax
push ebx
call fcn.004a30a0
xor esi, esi
add esp, 0x10
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x84], esi
je 0x4826b1
push ebx
call fcn.004a3010
push 4
push ebx
mov dword [esp + 0x2c], eax
call fcn.004a30a0
add esp, 0xc
mov dword [esp + 0x18], eax
jmp 0x4826b9
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x94]
mov edx, dword [edi + 0x14]
mov esi, dword [edi + 0x10]
xor ecx, ecx
mov dword [esp + 0x44], edx
test eax, eax
jle 0x482913
mov edx, ebx
imul edx, ebp
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], eax
jmp 0x4826ff
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x94]
add ecx, dword [esp + 0x4c]
mov dword [esp + 0x38], ecx
cmp ecx, eax
jl 0x48271c
mov ebp, dword [esp + 0x30]
sub ecx, eax
inc ebp
mov dword [esp + 0x38], ecx
mov dword [esp + 0x10], ebp
jmp 0x482726
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
mov ebp, eax
mov ecx, dword [esp + 0x1c]
lea eax, [edx*4]
push eax
push 0
push ecx
call fcn.00512510
mov edi, dword [esp + 0x24]
add esp, 0xc
cmp dword [esp + 0x84], 0
je 0x48275e
lea edx, [ebx*4]
push edx
push 0
push edi
call fcn.00512510
add esp, 0xc
test ebp, ebp
jle 0x4827cc
mov dword [esp + 0x14], ebp
jmp 0x482770
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x58]
push eax
push ebp
push ecx
call dword [esp + 0x5c]
xor eax, eax
add esp, 0xc
cmp dword [esp + 0x24], eax
jle 0x4827a2
mov edi, edi
movzx edx, byte [eax + ebp]
mov ecx, dword [esp + 0x1c]
add dword [ecx + eax*4], edx
inc eax
cmp eax, dword [esp + 0x24]
jl 0x482790
cmp dword [esp + 0x84], 0
je 0x4827c2
xor eax, eax
test ebx, ebx
jle 0x4827c2
mov ecx, dword [esp + 0x20]
movzx edx, byte [eax + ecx]
add dword [edi + eax*4], edx
inc eax
cmp eax, ebx
jl 0x4827b2
dec dword [esp + 0x14]
jne 0x482770
mov ebp, dword [esp + 0x10]
mov eax, 0x800000
cdq
idiv ebp
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x48], eax
cmp ebx, ecx
jle 0x482909
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jmp 0x4827f4
mov ecx, dword [esp + 0x40]
add ecx, dword [esp + 0x54]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x40], ecx
cmp ecx, ebx
jl 0x48280b
sub ecx, ebx
mov dword [esp + 0x40], ecx
inc ebp
mov edi, dword [esp + 0x3c]
xor eax, eax
test edi, edi
jle 0x482836
mov ecx, dword [esp + 0x14]
lea esp, [esp]
mov edx, dword [ecx]
imul edx, dword [esp + 0x48]
shr edx, 0x17
mov dword [esp + eax*4 + 0x5c], edx
inc eax
add ecx, 4
cmp eax, edi
jl 0x482820
mov eax, dword [esp + 0x7c]
dec eax
je 0x48289e
dec eax
je 0x482877
sub eax, 2
jne 0x4828b3
test ebp, ebp
jle 0x4828b3
mov eax, ebp
jmp 0x482850
movzx ecx, byte [esp + 0x5c]
movzx edx, byte [esp + 0x60]
mov byte [esi], cl
movzx ecx, byte [esp + 0x64]
mov byte [esi + 1], dl
movzx edx, byte [esp + 0x68]
mov byte [esi + 2], cl
mov byte [esi + 3], dl
add esi, 4
dec eax
jne 0x482850
jmp 0x4828b3
test ebp, ebp
jle 0x4828b3
mov eax, ebp
lea ecx, [ecx]
movzx ecx, byte [esp + 0x5c]
mov dl, byte [esp + 0x60]
mov byte [esi], cl
movzx ecx, byte [esp + 0x64]
mov byte [esi + 1], dl
mov byte [esi + 2], cl
add esi, 3
dec eax
jne 0x482880
jmp 0x4828b3
test ebp, ebp
jle 0x4828b3
mov edx, dword [esp + 0x5c]
push ebp
push edx
push esi
call fcn.00512510
add esp, 0xc
add esi, ebp
cmp dword [esp + 0x84], 0
je 0x4828ed
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + ecx*4]
imul eax, dword [esp + 0x48]
shr eax, 0x17
test ebp, ebp
jle 0x4828ed
mov edi, dword [esp + 0x44]
push ebp
push eax
push edi
call fcn.00512510
add esp, 0xc
add edi, ebp
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
inc ecx
lea eax, [edi*4]
add dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
cmp ecx, ebx
jl 0x4827f0
dec dword [esp + 0x2c]
jne 0x4826f0
mov edx, dword [esp + 0x18]
push edx
call fcn.004a2fd0
mov eax, dword [esp + 0x24]
push eax
call fcn.004a2fd0
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004a2fd0
mov edx, dword [esp + 0x40]
push edx
call fcn.004a2fd0
mov ecx, dword [esp + 0x7c]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00511afd
add esp, 0x60
ret 0x28