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

Disassembly:
sub esp, 0x78
mov eax, dword [0x59c6b8]
xor eax, esp
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x9c]
cdq
idiv dword [esp + 0x94]
mov ecx, dword [esp + 0x80]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x9c]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0xa4]
mov ebp, dword [esp + 0x94]
push edi
mov edi, dword [esp + 0xb0]
push ebp
push esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x68], edx
mov eax, esi
cdq
idiv ecx
mov ebx, eax
mov dword [esp + 0x78], edx
mov dword [esp + 0x6c], ebx
call fcn.004a30a0
add esp, 8
cmp dword [esp + 0x9c], 0
mov dword [esp + 0x3c], eax
je 0x4829f2
push esi
call fcn.004a3010
add esp, 4
mov dword [esp + 0x28], eax
jmp 0x4829fa
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0xa4]
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0x14]
xor esi, esi
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
test ecx, ecx
jle 0x482c8d
mov eax, 0x800000
cdq
idiv ebx
inc ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x6c], eax
mov eax, 0x800000
cdq
idiv ebx
mov bl, byte [esp + 0x74]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x20]
imul eax, ebp
mov dword [esp + 0x1c], eax
jmp 0x482a54
mov esi, dword [esp + 0x40]
add esi, dword [esp + 0x60]
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x40], esi
cmp esi, eax
jl 0x482a78
mov edi, dword [esp + 0x4c]
sub esi, eax
inc edi
mov dword [esp + 0x40], esi
mov dword [esp + 0x14], edi
jmp 0x482a82
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x14], ecx
mov edi, ecx
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x68]
push edx
push eax
push ecx
call dword [esp + 0x60]
mov esi, dword [esp + 0x2c]
xor eax, eax
xor edx, edx
add esp, 0xc
mov dword [esp + 0x48], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x38], eax
cmp esi, eax
jle 0x482c67
mov ecx, dword [esp + 0x30]
inc ecx
mov dword [esp + 0x18], ecx
jmp 0x482ac4
mov eax, dword [esp + 0x44]
add eax, dword [esp + 0x70]
mov dword [esp + 0x44], eax
cmp eax, esi
jl 0x482ae0
mov ecx, dword [esp + 0x5c]
sub eax, esi
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x58]
jmp 0x482ae8
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], eax
test ebp, ebp
jle 0x482b06
mov ecx, ebp
xor eax, eax
lea edi, [esp + 0x74]
rep stosd dword es:[edi], eax
mov bl, byte [esp + 0x74]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
test ecx, ecx
jle 0x482b3d
mov edi, edi
xor eax, eax
test ebp, ebp
jle 0x482b32
jmp 0x482b20
mov ebx, dword [esp + 0x3c]
movzx ebx, byte [edx + ebx]
add dword [esp + eax*4 + 0x74], ebx
inc eax
inc edx
cmp eax, ebp
jl 0x482b20
dec ecx
jne 0x482b10
mov bl, byte [esp + 0x74]
mov dword [esp + 0x10], edx
xor eax, eax
test ebp, ebp
jle 0x482b5c
mov ecx, dword [esp + eax*4 + 0x74]
imul ecx, dword [esp + 0x2c]
shr ecx, 0x17
mov dword [esp + eax*4 + 0x74], ecx
inc eax
cmp eax, ebp
jl 0x482b43
mov bl, byte [esp + 0x74]
mov eax, dword [esp + 0x94]
dec eax
je 0x482be3
dec eax
je 0x482bb3
sub eax, 2
jne 0x482bfd
test edi, edi
jle 0x482bfd
mov eax, dword [esp + 0x18]
inc eax
mov ecx, edi
movzx edx, byte [esp + 0x78]
mov byte [eax - 2], bl
mov byte [eax - 1], dl
movzx edx, byte [esp + 0x7c]
mov byte [eax], dl
movzx edx, byte [esp + 0x80]
mov byte [eax + 1], dl
add eax, dword [esp + 0x1c]
dec ecx
jne 0x482b85
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
jmp 0x482bfd
test edi, edi
jle 0x482bfd
mov eax, dword [esp + 0x18]
mov ecx, edi
lea ecx, [ecx]
movzx edx, byte [esp + 0x78]
mov byte [eax - 1], bl
mov byte [eax], dl
movzx edx, byte [esp + 0x7c]
mov byte [eax + 1], dl
add eax, dword [esp + 0x1c]
dec ecx
jne 0x482bc0
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
jmp 0x482bfd
test edi, edi
jle 0x482bfd
mov eax, dword [esp + 0x18]
dec eax
mov ecx, edi
mov edi, edi
mov byte [eax], bl
add eax, dword [esp + 0x1c]
dec ecx
jne 0x482bf0
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x9c], 0
je 0x482c52
xor eax, eax
cmp dword [esp + 0x24], eax
jle 0x482c31
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x28]
movzx edi, byte [edx + edi]
inc edx
add eax, edi
dec ecx
mov dword [esp + 0x48], edx
jne 0x482c13
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
imul eax, dword [esp + 0x2c]
shr eax, 0x17
test edi, edi
jle 0x482c52
mov ecx, dword [esp + 0x38]
add ecx, dword [esp + 0x34]
mov edx, edi
mov byte [ecx], al
add ecx, esi
dec edx
jne 0x482c47
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
add dword [esp + 0x18], ebp
inc eax
mov dword [esp + 0x38], eax
cmp eax, esi
jl 0x482ac0
mov eax, dword [esp + 0x1c]
imul eax, edi
add dword [esp + 0x30], eax
cmp dword [esp + 0x9c], 0
je 0x482c83
imul esi, edi
add dword [esp + 0x34], esi
dec dword [esp + 0x50]
jne 0x482a50
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004a2fd0
mov edx, dword [esp + 0x40]
push edx
call fcn.004a2fd0
mov ecx, dword [esp + 0x8c]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00511afd
add esp, 0x78
ret 0x28