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

Disassembly:
sub esp, 0x4c
mov eax, dword [esp + 0x68]
push ebx
push ebp
push esi
cdq
push edi
mov edi, dword [esp + 0x80]
idiv edi
mov ebx, dword [esp + 0x74]
mov esi, dword [esp + 0x6c]
push esi
push ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x50], edx
mov eax, ebx
cdq
idiv dword [esp + 0x84]
mov dword [esp + 0x54], edx
mov dword [esp + 0x28], eax
call fcn.004a30a0
mov dword [esp + 0x4c], eax
lea eax, [esi*4]
push eax
push ebx
call fcn.004a30a0
mov ebp, eax
xor eax, eax
add esp, 0x10
mov dword [esp + 0x14], ebp
cmp dword [esp + 0x70], eax
je 0x4822b8
push ebx
call fcn.004a3010
push 4
push ebx
mov dword [esp + 0x24], eax
call fcn.004a30a0
add esp, 0xc
jmp 0x4822bc
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x84]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
xor ecx, ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x38], eax
test edi, edi
jle 0x4825d4
imul esi, ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x40], edi
jmp 0x4822ff
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x80]
mov esi, dword [esp + 0x30]
add ecx, dword [esp + 0x48]
mov dword [esp + 0x28], ecx
cmp ecx, edi
jl 0x48231c
sub ecx, edi
mov edi, dword [esp + 0x2c]
inc edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x78], edi
jmp 0x482326
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x78], ecx
mov edi, ecx
lea eax, [esi*4]
push eax
push 0
push ebp
call fcn.00512510
mov esi, dword [esp + 0x1c]
add esp, 0xc
cmp dword [esp + 0x70], 0
je 0x482357
lea edx, [ebx*4]
push edx
push 0
push esi
call fcn.00512510
add esp, 0xc
test edi, edi
jle 0x4823bd
mov dword [esp + 0x84], edi
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x64]
push eax
push edi
push ecx
call dword [esp + 0x6c]
mov ecx, dword [esp + 0x3c]
add esp, 0xc
xor eax, eax
test ecx, ecx
jle 0x48238f
movzx edx, byte [eax + edi]
add dword [ebp + eax*4], edx
inc eax
cmp eax, ecx
jl 0x482382
cmp dword [esp + 0x70], 0
je 0x4823b0
xor eax, eax
test ebx, ebx
jle 0x4823b0
lea esp, [esp]
mov ecx, dword [esp + 0x18]
movzx edx, byte [eax + ecx]
add dword [esi + eax*4], edx
inc eax
cmp eax, ebx
jl 0x4823a0
dec dword [esp + 0x84]
jne 0x482362
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x20]
mov esi, edi
imul esi, ecx
mov eax, 0x800000
cdq
idiv esi
inc ecx
imul ecx, edi
xor edi, edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x78], edi
mov dword [esp + 0x54], eax
mov eax, 0x800000
cdq
idiv ecx
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x7c]
test eax, eax
jle 0x4825ca
mov dword [esp + 0x3c], eax
jmp 0x482414
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x1c]
add edx, dword [esp + 0x4c]
mov dword [esp + 0x1c], edx
cmp edx, eax
jl 0x48243c
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x50]
sub edx, eax
inc ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x84], ebx
jmp 0x48244d
mov edx, dword [esp + 0x20]
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x84], edx
mov ebx, edx
mov eax, dword [esp + 0x68]
dec eax
mov dword [esp + 0x34], ebp
je 0x48255d
dec eax
je 0x4824f7
sub eax, 2
jne 0x482587
mov eax, dword [esp + 0x84]
xor ebx, ebx
xor edi, edi
xor esi, esi
xor edx, edx
test eax, eax
jle 0x4824b9
mov ebp, dword [esp + 0x78]
mov ecx, dword [esp + 0x14]
lea eax, [ebp + eax*4]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x84]
lea ecx, [ecx + ebp*4 + 8]
lea ebx, [ebx]
add edx, dword [ecx - 8]
add esi, dword [ecx - 4]
add edi, dword [ecx]
add ebx, dword [ecx + 4]
add ecx, 0x10
dec eax
jne 0x4824a0
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x6c]
imul edx, ebp
imul ebx, ebp
shr edx, 0x17
mov byte [eax], dl
mov edx, esi
imul edx, ebp
shr edx, 0x17
mov byte [eax + 1], dl
mov edx, edi
mov edi, dword [esp + 0x78]
imul edx, ebp
shr edx, 0x17
shr ebx, 0x17
mov byte [eax + 2], dl
mov byte [eax + 3], bl
mov ebx, dword [esp + 0x84]
add eax, 4
jmp 0x482583
xor esi, esi
xor edx, edx
xor eax, eax
test ebx, ebx
jle 0x482532
mov ecx, dword [esp + 0x14]
lea ecx, [ecx + edi*4 + 8]
add edi, ebx
lea edi, [edi + ebx*2]
mov dword [esp + 0x78], edi
mov dword [esp + 0x84], ebx
mov edi, ebx
jmp 0x482520
add eax, dword [ecx - 8]
add edx, dword [ecx - 4]
add esi, dword [ecx]
add ecx, 0xc
dec edi
jne 0x482520
mov edi, dword [esp + 0x78]
mov ecx, eax
imul edx, ebp
mov eax, dword [esp + 0x6c]
imul ecx, ebp
shr edx, 0x17
shr ecx, 0x17
mov byte [eax], cl
mov ecx, dword [esp + 0x24]
mov byte [eax + 1], dl
mov edx, esi
imul edx, ebp
shr edx, 0x17
mov byte [eax + 2], dl
add eax, 3
jmp 0x482583
xor eax, eax
test ebx, ebx
jle 0x482574
mov edx, ebx
mov esi, dword [esp + 0x14]
add eax, dword [esi + edi*4]
inc edi
dec edx
jne 0x482565
mov dword [esp + 0x78], edi
mov edx, eax
mov eax, dword [esp + 0x6c]
imul edx, ebp
shr edx, 0x17
mov byte [eax], dl
inc eax
mov dword [esp + 0x6c], eax
cmp dword [esp + 0x70], 0
je 0x4825b8
xor eax, eax
test ebx, ebx
jle 0x4825a5
mov edx, ebx
mov esi, dword [esp + 0x10]
add eax, dword [esi + ecx*4]
inc ecx
dec edx
jne 0x482596
mov dword [esp + 0x24], ecx
mov edx, eax
mov eax, dword [esp + 0x38]
imul edx, ebp
shr edx, 0x17
mov byte [eax], dl
inc eax
mov dword [esp + 0x38], eax
dec dword [esp + 0x3c]
jne 0x482410
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x14]
dec dword [esp + 0x40]
jne 0x4822f0
mov eax, dword [esp + 0x10]
push eax
call fcn.004a2fd0
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004a2fd0
push ebp
call fcn.004a2fd0
mov edx, dword [esp + 0x50]
push edx
call fcn.004a2fd0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0x28