Function at 0x488128
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff70
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x90]
mov ecx, 0x11
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 1], dl
mov eax, dword [ebp - 0x78]
xor ecx, ecx
mov edx, dword [ebp - 0x84]
call fcn.00402ba0
mov eax, dword [ebp - 0x6c]
mov al, byte [eax + 0x38]
sub al, 1
je 0x488164
sub al, 2
jne 0x48817f
mov al, byte [ebp - 1]
push eax
mov eax, dword [ebp - 0x78]
mov ebx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x88]
call dword [ebx + 8]
jmp 0x488198
mov al, byte [ebp - 1]
push eax
mov eax, dword [ebp - 0x78]
mov ebx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp - 0x8c]
call dword [ebx + 8]
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x6c]
mov ecx, dword [edx + 0x30]
cdq
idiv ecx
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x6c]
mov ecx, dword [edx + 0x30]
cdq
idiv ecx
inc eax
mov dword [ebp - 0x18], eax
xor ecx, ecx
push ebp
push 0x48857b
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x30]
dec eax
test eax, eax
jl 0x488568
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x30]
dec eax
test eax, eax
jl 0x48855c
inc eax
mov dword [ebp - 0x3c], eax
xor edi, edi
mov eax, dword [ebp - 0x8c]
dec eax
test eax, eax
jl 0x488552
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x88]
dec eax
test eax, eax
jl 0x488546
inc eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x2c]
imul dword [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
inc edx
mov ecx, dword [ebp - 0x6c]
imul edx, dword [ecx + 0x2c]
sub edx, eax
jl 0x48853a
inc edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x2c]
mov edx, eax
imul edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
inc ecx
imul ecx, eax
sub ecx, edx
jl 0x48852e
inc ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x24]
imul edx, dword [ebp - 0x14]
mov eax, edx
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov eax, edi
imul eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x6c]
mov cl, byte [eax + 0x38]
dec cl
je 0x4882aa
dec cl
je 0x48831b
dec cl
je 0x48839a
jmp 0x48840c
mov edx, dword [ebp - 0x8c]
mov ecx, edx
sub ecx, dword [ebp - 0x1c]
dec ecx
imul ecx, dword [ebp - 0x88]
add ecx, dword [ebp - 0x20]
lea ecx, [ecx + ecx*2]
mov ebx, dword [ebp - 0x78]
mov esi, dword [ebx + ecx*2]
mov dword [ebp - 0xe], esi
mov si, word [ebx + ecx*2 + 4]
mov word [ebp - 0xa], si
movsx ecx, word [ebp - 0xa]
mov ebx, edx
sub ebx, ecx
dec ebx
imul ebx, dword [eax + 0x2c]
mov edx, dword [ebp - 0x24]
imul edx, dword [ebp - 0x14]
add ebx, edx
mov edx, dword [eax + 0x2c]
imul edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
sub ecx, edx
add ebx, ecx
movsx esi, word [ebp - 0xc]
imul esi, dword [eax + 0x2c]
mov edx, edi
imul edx, dword [ebp - 0x18]
add esi, edx
mov eax, dword [eax + 0x2c]
imul dword [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
sub edx, eax
add esi, edx
jmp 0x48846a
mov edx, dword [ebp - 0x8c]
mov ecx, edx
sub ecx, dword [ebp - 0x1c]
dec ecx
mov ebx, dword [ebp - 0x88]
sub ebx, dword [ebp - 0x20]
dec ebx
imul ebx, edx
add ecx, ebx
lea ecx, [ecx + ecx*2]
mov ebx, dword [ebp - 0x78]
mov esi, dword [ebx + ecx*2]
mov dword [ebp - 0xe], esi
mov si, word [ebx + ecx*2 + 4]
mov word [ebp - 0xa], si
movsx ecx, word [ebp - 0xc]
mov ebx, edx
sub ebx, ecx
dec ebx
imul ebx, dword [eax + 0x2c]
mov edx, dword [ebp - 0x24]
imul edx, dword [ebp - 0x14]
add ebx, edx
mov edx, dword [eax + 0x2c]
imul edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
sub ecx, edx
add ebx, ecx
movsx edx, word [ebp - 0xa]
mov esi, dword [ebp - 0x88]
sub esi, edx
dec esi
imul esi, dword [eax + 0x2c]
mov edx, edi
imul edx, dword [ebp - 0x18]
add esi, edx
mov eax, dword [eax + 0x2c]
imul dword [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
sub edx, eax
add esi, edx
jmp 0x48846a
mov ecx, dword [ebp - 0x88]
sub ecx, dword [ebp - 0x20]
dec ecx
mov ebx, dword [ebp - 0x88]
imul ebx, dword [ebp - 0x1c]
add ecx, ebx
lea ecx, [ecx + ecx*2]
mov ebx, dword [ebp - 0x78]
mov esi, dword [ebx + ecx*2]
mov dword [ebp - 0xe], esi
mov si, word [ebx + ecx*2 + 4]
mov word [ebp - 0xa], si
movsx ebx, word [ebp - 0xa]
imul ebx, dword [eax + 0x2c]
add ebx, edx
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x2c]
imul dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
sub edx, eax
add ebx, edx
movsx eax, word [ebp - 0xc]
mov esi, dword [ebp - 0x88]
sub esi, eax
dec esi
mov eax, dword [ebp - 0x6c]
imul esi, dword [eax + 0x2c]
mov eax, edi
imul dword [ebp - 0x18]
add esi, eax
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x2c]
imul dword [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
sub edx, eax
add esi, edx
jmp 0x48846a
mov ecx, dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x1c]
lea ecx, [ecx + ecx*2]
mov ebx, dword [ebp - 0x78]
mov esi, dword [ebx + ecx*2]
mov dword [ebp - 0xe], esi
mov si, word [ebx + ecx*2 + 4]
mov word [ebp - 0xa], si
movsx ebx, word [ebp - 0xc]
imul ebx, dword [eax + 0x2c]
add ebx, edx
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x2c]
imul dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
sub edx, eax
add ebx, edx
movsx esi, word [ebp - 0xa]
mov eax, dword [ebp - 0x6c]
imul esi, dword [eax + 0x2c]
mov eax, edi
imul dword [ebp - 0x18]
add esi, eax
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x2c]
imul dword [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
sub edx, eax
add esi, edx
mov eax, dword [ebp - 0x68]
mov edx, dword [eax + 8]
cmp edx, dword [ebp - 0x30]
jle 0x488522
mov eax, dword [eax + 0xc]
cmp eax, dword [ebp - 0x34]
jle 0x488522
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x60]
call fcn.00486550
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x68]
cmp ebx, dword [eax + 8]
jge 0x488522
cmp esi, dword [eax + 0xc]
jge 0x488522
test ebx, ebx
jl 0x488522
test esi, esi
jl 0x488522
mov eax, dword [ebp - 0x24]
imul dword [ebp - 0x14]
cmp ebx, eax
jl 0x488522
mov eax, dword [ebp - 0x24]
inc eax
imul dword [ebp - 0x14]
cmp ebx, eax
jg 0x488522
mov eax, edi
imul dword [ebp - 0x18]
cmp esi, eax
jl 0x488522
lea eax, [edi + 1]
imul dword [ebp - 0x18]
cmp esi, eax
jg 0x488522
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 0x68]
call fcn.00486550
mov ebx, eax
mov eax, dword [ebx]
test eax, 0xff000000
je 0x488522
mov dl, byte [ebp - 0xe]
cmp dl, 0xff
jne 0x4884fd
mov edx, dword [ebp - 8]
mov dword [edx], eax
jmp 0x488522
and dword [ebx], 0xffffff
xor eax, eax
mov al, dl
shl eax, 0x18
or dword [ebx], eax
mov esi, dword [0x4f8510]
mov esi, dword [esi]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, dword [ebx]
call esi
mov edx, dword [ebp - 8]
mov dword [edx], eax
inc dword [ebp - 0x2c]
dec dword [ebp - 0x4c]
jne 0x488274
inc dword [ebp - 0x28]
dec dword [ebp - 0x48]
jne 0x488252
inc dword [ebp - 0x20]
dec dword [ebp - 0x44]
jne 0x48822f
inc dword [ebp - 0x1c]
dec dword [ebp - 0x40]
jne 0x488215
inc edi
dec dword [ebp - 0x3c]
jne 0x4881fb
inc dword [ebp - 0x24]
dec dword [ebp - 0x38]
jne 0x4881e6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488582
call fcn.004834cc
ret