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

Disassembly:
sub esp, 0x40
mov eax, dword [esp + 0x5c]
push ebx
push ebp
mov ebp, dword [esp + 0x6c]
cdq
idiv ebp
mov ebx, dword [esp + 0x60]
push esi
mov esi, dword [esp + 0x5c]
push edi
push esi
push ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x48], edx
mov eax, ebx
cdq
idiv dword [esp + 0x78]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x18], eax
call fcn.00497310
mov dword [esp + 0x20], eax
lea eax, [esi*4]
push eax
push ebx
call fcn.00497310
mov dword [esp + 0x7c], eax
xor eax, eax
add esp, 0x10
cmp dword [esp + 0x64], eax
je 0x4dbf66
push ebx
call fcn.00497280
push 4
push ebx
mov dword [esp + 0x20], eax
call fcn.00497310
mov edi, eax
add esp, 0xc
mov dword [esp + 0x60], edi
jmp 0x4dbf70
mov dword [esp + 0x14], eax
mov dword [esp + 0x60], eax
mov edi, eax
mov eax, dword [esp + 0x78]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
xor ecx, ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x30], eax
test ebp, ebp
jle 0x4dc1a9
mov eax, dword [esp + 0x74]
mov ebp, esi
imul ebp, ebx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], eax
jmp 0x4dbfac
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x74]
add ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x20]
cmp ecx, eax
mov dword [esp + 0x1c], ecx
jl 0x4dbfc3
sub ecx, eax
mov dword [esp + 0x1c], ecx
inc esi
mov ecx, dword [esp + 0x6c]
lea eax, [ebp*4]
push eax
push 0
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
cmp dword [esp + 0x64], 0
je 0x4dbff4
lea edx, [ebx*4]
push edx
push 0
push edi
call sub.MSVCR90.dll_memset
add esp, 0xc
test esi, esi
jle 0x4dc058
mov dword [esp + 0x24], esi
lea esp, [esp]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x58]
push eax
push ecx
push edx
call dword [esp + 0x60]
add esp, 0xc
xor eax, eax
test ebp, ebp
jle 0x4dc034
lea esp, [esp]
mov ecx, dword [esp + 0x18]
movzx edx, byte [eax + ecx]
mov ecx, dword [esp + 0x6c]
add dword [ecx + eax*4], edx
inc eax
cmp eax, ebp
jl 0x4dc020
cmp dword [esp + 0x64], 0
je 0x4dc051
xor eax, eax
test ebx, ebx
jle 0x4dc051
mov ecx, dword [esp + 0x14]
movzx edx, byte [eax + ecx]
add dword [edi + eax*4], edx
inc eax
cmp eax, ebx
jl 0x4dc041
sub dword [esp + 0x24], 1
jne 0x4dc000
mov ebp, esi
imul ebp, dword [esp + 0x10]
mov eax, 0x800000
cdq
idiv ebp
xor ecx, ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x10]
inc eax
mov ebp, eax
imul ebp, esi
mov eax, 0x800000
cdq
idiv ebp
xor esi, esi
xor ebp, ebp
mov dword [esp + 0x2c], esi
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x70]
test eax, eax
jle 0x4dc19e
mov dword [esp + 0x34], eax
jmp 0x4dc0a8
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x70]
add ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x10]
cmp ecx, eax
mov dword [esp + 0x24], ecx
jl 0x4dc0c5
sub ecx, eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x24], ecx
inc ebx
jmp 0x4dc0c9
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x5c]
sub ecx, 1
mov dword [esp + 0x28], eax
je 0x4dc138
sub ecx, 1
jne 0x4dc164
xor edi, edi
xor esi, esi
xor edx, edx
test ebx, ebx
jle 0x4dc114
mov eax, dword [esp + 0x6c]
lea ecx, [eax + ebp*4 + 8]
add ebp, ebx
mov eax, ebx
lea ebp, [ebp + ebx*2]
lea esp, [esp]
add edx, dword [ecx - 8]
add esi, dword [ecx - 4]
add edi, dword [ecx]
add ecx, 0xc
sub eax, 1
jne 0x4dc100
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x78]
imul edx, eax
shr edx, 0x17
mov byte [ecx], dl
mov edx, esi
mov esi, dword [esp + 0x2c]
imul edx, eax
shr edx, 0x17
inc ecx
mov byte [ecx], dl
mov edx, edi
mov edi, dword [esp + 0x60]
inc ecx
jmp 0x4dc157
xor ecx, ecx
test ebx, ebx
jle 0x4dc151
mov edx, ebx
mov edi, dword [esp + 0x6c]
add ecx, dword [edi + ebp*4]
inc ebp
sub edx, 1
jne 0x4dc140
mov edi, dword [esp + 0x60]
mov edx, ecx
mov ecx, dword [esp + 0x78]
imul edx, eax
shr edx, 0x17
mov byte [ecx], dl
inc ecx
mov dword [esp + 0x78], ecx
cmp dword [esp + 0x64], 0
je 0x4dc18f
xor ecx, ecx
test ebx, ebx
jle 0x4dc17e
add ecx, dword [edi + esi*4]
inc esi
sub ebx, 1
jne 0x4dc171
mov dword [esp + 0x2c], esi
imul ecx, eax
mov eax, dword [esp + 0x30]
shr ecx, 0x17
mov byte [eax], cl
inc eax
mov dword [esp + 0x30], eax
sub dword [esp + 0x34], 1
jne 0x4dc0a0
mov ebx, dword [esp + 0x68]
sub dword [esp + 0x38], 1
jne 0x4dbfa0
push edi
call fcn.00497230
mov eax, dword [esp + 0x18]
push eax
call fcn.00497230
mov ecx, dword [esp + 0x74]
push ecx
call fcn.00497230
mov edx, dword [esp + 0x24]
push edx
call fcn.00497230
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0x28