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

Disassembly:
sub esp, 0x48
mov eax, dword [esp + 0x6c]
push ebx
mov ebx, dword [esp + 0x68]
cdq
idiv ebx
push ebp
push esi
mov esi, dword [esp + 0x6c]
push edi
mov edi, dword [esp + 0x78]
mov ebp, dword [esp + 0x68]
push ebp
push esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], edx
mov eax, esi
cdq
idiv edi
mov dword [esp + 0x48], edx
mov dword [esp + 0x18], eax
call fcn.00497310
add esp, 8
cmp dword [esp + 0x6c], 0
mov dword [esp + 0x20], eax
je 0x4dc4e7
push esi
call fcn.00497280
add esp, 4
mov dword [esp + 0x68], eax
jmp 0x4dc4ef
mov dword [esp + 0x68], 0
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
xor esi, esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
test ebx, ebx
jle 0x4dc736
mov ecx, dword [esp + 0x10]
mov eax, 0x800000
cdq
idiv ecx
inc ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x48], eax
mov eax, 0x800000
cdq
idiv ecx
mov dword [esp + 0x44], eax
jmp 0x4dc539
mov ebx, dword [esp + 0x74]
mov esi, dword [esp + 0x24]
add esi, dword [esp + 0x3c]
cmp esi, ebx
mov dword [esp + 0x24], esi
jl 0x4dc556
sub esi, ebx
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x28]
inc esi
mov dword [esp + 0x7c], esi
jmp 0x4dc560
mov eax, dword [esp + 0x28]
mov dword [esp + 0x7c], eax
mov esi, eax
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x60]
push ecx
push edx
push eax
call dword [esp + 0x68]
xor eax, eax
add esp, 0xc
xor ebx, ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], eax
test edi, edi
jle 0x4dc711
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x70], ecx
jmp 0x4dc598
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x40]
cmp eax, edi
mov dword [esp + 0x2c], eax
jl 0x4dc5c2
sub eax, edi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x10]
inc eax
mov edx, eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x80], eax
jmp 0x4dc5d5
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x30], edx
mov dword [esp + 0x80], ecx
test ebp, ebp
jle 0x4dc5e7
mov ecx, ebp
xor eax, eax
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x78]
test edx, edx
jle 0x4dc617
mov ecx, edx
lea ecx, [ecx]
xor eax, eax
test ebp, ebp
jle 0x4dc612
jmp 0x4dc600
mov edx, dword [esp + 0x20]
movzx edx, byte [ebx + edx]
add dword [esp + eax*4 + 0x4c], edx
inc eax
inc ebx
cmp eax, ebp
jl 0x4dc600
sub ecx, 1
jne 0x4dc5f0
xor eax, eax
test ebp, ebp
jle 0x4dc638
lea ecx, [ecx]
mov ecx, dword [esp + eax*4 + 0x4c]
imul ecx, dword [esp + 0x80]
shr ecx, 0x17
mov dword [esp + eax*4 + 0x4c], ecx
inc eax
cmp eax, ebp
jl 0x4dc620
mov eax, dword [esp + 0x64]
sub eax, 1
je 0x4dc680
sub eax, 1
jne 0x4dc6a5
test esi, esi
jle 0x4dc6a5
mov eax, dword [esp + 0x70]
mov ecx, ebp
imul ecx, edi
inc eax
jmp 0x4dc660
movzx edx, byte [esp + 0x4c]
mov byte [eax - 1], dl
movzx edx, byte [esp + 0x50]
mov byte [eax], dl
movzx edx, byte [esp + 0x54]
mov byte [eax + 1], dl
add eax, ecx
sub esi, 1
jne 0x4dc660
jmp 0x4dc69d
test esi, esi
jle 0x4dc6a5
mov ecx, dword [esp + 0x70]
mov eax, ebp
imul eax, edi
lea ecx, [ecx]
mov dl, byte [esp + 0x4c]
mov byte [ecx], dl
add ecx, eax
sub esi, 1
jne 0x4dc690
mov esi, dword [esp + 0x7c]
mov edi, dword [esp + 0x78]
cmp dword [esp + 0x6c], 0
je 0x4dc6fc
mov ecx, dword [esp + 0x30]
xor eax, eax
test ecx, ecx
jle 0x4dc6d8
mov edx, dword [esp + 0x34]
lea ebx, [ebx]
mov esi, dword [esp + 0x68]
movzx esi, byte [edx + esi]
add eax, esi
inc edx
sub ecx, 1
jne 0x4dc6c0
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x34], edx
imul eax, dword [esp + 0x80]
shr eax, 0x17
test esi, esi
jle 0x4dc6fc
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
add ecx, edx
mov edx, esi
mov byte [ecx], al
add ecx, edi
sub edx, 1
jne 0x4dc6f3
mov eax, dword [esp + 0x14]
add dword [esp + 0x70], ebp
inc eax
cmp eax, edi
mov dword [esp + 0x14], eax
jl 0x4dc594
mov eax, esi
imul eax, ebp
imul eax, edi
add dword [esp + 0x18], eax
cmp dword [esp + 0x6c], 0
je 0x4dc72b
imul esi, edi
add dword [esp + 0x1c], esi
sub dword [esp + 0x38], 1
jne 0x4dc531
mov ecx, dword [esp + 0x68]
push ecx
call fcn.00497230
mov edx, dword [esp + 0x24]
push edx
call fcn.00497230
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x28