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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [edx + 4]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
mov ebx, dword [ecx + 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 0x18]
mov dword [ebp - 4], ebx
mov eax, dword [eax + 4]
mov esi, dword [eax + 0x24]
cmp esi, ebx
mov eax, ebx
cmovl eax, esi
mov dword [ebp - 0x28], eax
mov eax, esi
cdq
mov ecx, eax
mov eax, edx
push eax
push ecx
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
call fcn.0048cab0
xor edi, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], edx
cmp esi, ebx
je 0x4dc054
mov eax, dword [ebp - 0x18]
mov ecx, 8
cmp byte [eax + 0xc], 0
cmovne edi, ecx
mov ecx, dword [ebp - 0x14]
mov ebx, edx
sub ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], ecx
sbb ebx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ebx
test edi, edi
jne 0x4dc20d
mov eax, dword [ebp - 4]
cdq
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], edx
mov esi, dword [ebp - 0x14]
cmp ebx, dword [ebp - 0x24]
jg 0x4dc20d
jl 0x4dc08d
cmp ecx, esi
jae 0x4dc20d
push ebx
push edx
push eax
push ebx
push ecx
mov dword [ebp + 0xc], 0
call fcn.0055a960
mov dword [ebp - 4], ebx
pop ebx
mov ebx, ecx
mov dword [ebp - 4], edx
lea ecx, [eax + 1]
xor edx, edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
mov eax, dword [0x5ac2d0]
div dword [esi + 0x24]
inc eax
cmp ecx, eax
je 0x4dc1ef
push 0
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x18]
push ecx
push eax
mov eax, dword [eax + 0xcc]
call eax
mov edi, eax
add esp, 0x10
mov dword [ebp - 4], edi
test edi, edi
jne 0x4dc197
mov eax, dword [ebp + 0xc]
test byte [eax + 0x1c], 4
mov edx, dword [eax + 0x14]
je 0x4dc111
mov ecx, dword [edx + 0x18]
cmp ecx, dword [eax + 0x18]
jb 0x4dc111
cmp dword [edx + 0x60], edi
je 0x4dc10a
push eax
call fcn.00545760
jmp 0x4dc136
xor edi, edi
mov dword [ebp - 4], edi
jmp 0x4dc145
mov edi, dword [edx + 0x28]
mov dword [ebp - 4], edi
test edi, edi
jne 0x4dc19a
mov ecx, dword [edx + 0x94]
push eax
cmp ecx, dword [edx + 0x98]
jbe 0x4dc131
call fcn.004f7200
jmp 0x4dc136
call fcn.004f84e0
mov edi, eax
add esp, 4
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], edi
test edi, edi
jne 0x4dc19a
push dword [ebp - 0x28]
mov esi, dword [eax + 4]
push dword [ebp - 0x1c]
add esi, ebx
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x20]
push dword [ebp - 0xc]
push ebx
call fcn.0055aa40
add eax, dword [ebp + 0x10]
push eax
push esi
call fcn.0048d780
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov eax, dword [eax + 8]
mov byte [eax], 0
mov eax, ebx
or eax, dword [ebp - 0xc]
jne 0x4dc197
cmp dword [ebp + 0x14], eax
jne 0x4dc197
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x30]
and eax, 0x7fffffff
bswap eax
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4dc1ef
test byte [eax + 0x1c], 0x20
je 0x4dc1e6
mov edx, dword [eax + 0x14]
dec dword [edx + 0x78]
mov ecx, dword [edx + 0x88]
mov dword [eax + 0x10], ecx
mov esi, dword [edx + 0x3c]
mov dword [edx + 0x88], eax
push dword [eax + 4]
mov ecx, dword [eax + 0x18]
mov eax, dword [edx + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.0048cab0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov edi, dword [ebp - 4]
add esp, 0x10
jmp 0x4dc1ef
push eax
call fcn.0051ff30
add esp, 4
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x2c]
add ecx, eax
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x30]
adc ebx, edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ebx
test edi, edi
je 0x4dc077
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret