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

Disassembly:
sub esp, 0x68
mov eax, dword [0x59c6b8]
xor eax, esp
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x8c]
push ebx
push ebp
mov ebp, dword [esp + 0x8c]
cdq
idiv ebp
mov ecx, dword [esp + 0x78]
mov ebx, dword [esp + 0x88]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x90]
push esi
mov esi, dword [esp + 0x84]
push edi
mov edi, dword [esp + 0xa0]
push esi
push ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x58], edx
mov eax, ecx
cdq
idiv ebx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x44], eax
call fcn.004a30a0
add esp, 8
cmp dword [esp + 0x8c], 0
mov dword [esp + 0x34], eax
je 0x482d53
push ebx
call fcn.004a3010
add esp, 4
mov dword [esp + 0x1c], eax
jmp 0x482d5b
mov dword [esp + 0x1c], 0
mov edx, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
xor eax, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], ecx
test ebp, ebp
jle 0x482fa8
mov ecx, dword [esp + 0x24]
imul ecx, esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x4c], ebp
jmp 0x482d88
mov eax, dword [esp + 0x38]
add eax, dword [esp + 0x50]
mov dword [esp + 0x38], eax
cmp eax, ebp
jl 0x482da5
mov edx, dword [esp + 0x40]
sub eax, ebp
inc edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x10], edx
jmp 0x482dad
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x58]
push ecx
push edx
push eax
call dword [esp + 0x6c]
xor edi, edi
add esp, 0xc
xor eax, eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edi
cmp ebx, edi
jle 0x482f7a
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x44], ecx
jmp 0x482de5
mov eax, dword [esp + 0x48]
add eax, dword [esp + 0x54]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x48], eax
cmp eax, ebx
jl 0x482dfc
sub eax, ebx
mov dword [esp + 0x48], eax
inc edx
xor eax, eax
mov dword [esp + 0x20], edx
test esi, esi
jle 0x482e13
movzx ebx, byte [ecx + eax]
mov dword [esp + eax*4 + 0x64], ebx
inc eax
cmp eax, esi
jl 0x482e06
mov eax, dword [esp + 0x84]
dec eax
je 0x482ed5
dec eax
je 0x482e80
sub eax, 2
jne 0x482f02
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x482f02
mov ecx, esi
imul ecx, edi
mov edi, dword [esp + 0x14]
lea edi, [ecx + edi + 2]
mov ebp, eax
test edx, edx
jle 0x482e74
mov eax, edi
mov ecx, edx
movzx ebx, byte [esp + 0x64]
mov byte [eax - 2], bl
movzx ebx, byte [esp + 0x68]
mov byte [eax - 1], bl
movzx ebx, byte [esp + 0x6c]
mov byte [eax], bl
movzx ebx, byte [esp + 0x70]
mov byte [eax + 1], bl
add eax, esi
dec ecx
jne 0x482e50
add edi, dword [esp + 0x18]
dec ebp
jne 0x482e48
jmp 0x482f02
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x482f02
mov ecx, esi
imul ecx, edi
mov edi, dword [esp + 0x14]
lea edi, [ecx + edi + 1]
mov ebp, eax
jmp 0x482ea0
test edx, edx
jle 0x482ecc
mov eax, edi
mov ecx, edx
jmp 0x482eb0
movzx ebx, byte [esp + 0x64]
mov byte [eax - 1], bl
movzx ebx, byte [esp + 0x68]
mov byte [eax], bl
movzx ebx, byte [esp + 0x6c]
mov byte [eax + 1], bl
add eax, esi
dec ecx
jne 0x482eb0
add edi, dword [esp + 0x18]
dec ebp
jne 0x482ea0
jmp 0x482f02
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x482f02
mov ecx, esi
imul ecx, edi
add ecx, dword [esp + 0x14]
mov ebp, eax
test edx, edx
jle 0x482efb
mov eax, ecx
mov edi, edx
mov bl, byte [esp + 0x64]
mov byte [eax], bl
add eax, esi
dec edi
jne 0x482ef0
add ecx, dword [esp + 0x18]
dec ebp
jne 0x482ee8
cmp dword [esp + 0x8c], 0
je 0x482f4a
cmp dword [esp + 0x10], 0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
movzx ebx, byte [eax + ecx]
jle 0x482f4a
mov edi, dword [esp + 0x28]
add edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x10]
jmp 0x482f30
test edx, edx
jle 0x482f43
push edx
push ebx
push edi
call fcn.00512510
mov edx, dword [esp + 0x2c]
add esp, 0xc
add edi, dword [esp + 0x24]
dec ebp
jne 0x482f30
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x5c]
inc eax
add edi, edx
add ecx, esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], ecx
cmp eax, ebx
jl 0x482de1
mov ebp, dword [esp + 0x94]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
imul edx, eax
add dword [esp + 0x14], edx
cmp dword [esp + 0x8c], 0
je 0x482f9e
mov ecx, dword [esp + 0x24]
imul ecx, eax
add dword [esp + 0x2c], ecx
dec dword [esp + 0x4c]
jne 0x482d84
mov edx, dword [esp + 0x1c]
push edx
call fcn.004a2fd0
mov eax, dword [esp + 0x38]
push eax
call fcn.004a2fd0
mov ecx, dword [esp + 0x7c]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00511afd
add esp, 0x68
ret 0x28