Function at 0x4dbc20
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.0048c6e0
xor edi, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], edx
cmp esi, ebx
je 0x4dbc84
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 0x4dbe3d
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 0x4dbe3d
jl 0x4dbcbd
cmp ecx, esi
jae 0x4dbe3d
push ebx
push edx
push eax
push ebx
push ecx
mov dword [ebp + 0xc], 0
call fcn.0055a5b0
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 0x4dbe1f
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 0x4dbdc7
mov eax, dword [ebp + 0xc]
test byte [eax + 0x1c], 4
mov edx, dword [eax + 0x14]
je 0x4dbd41
mov ecx, dword [edx + 0x18]
cmp ecx, dword [eax + 0x18]
jb 0x4dbd41
cmp dword [edx + 0x60], edi
je 0x4dbd3a
push eax
call fcn.005453a0
jmp 0x4dbd66
xor edi, edi
mov dword [ebp - 4], edi
jmp 0x4dbd75
mov edi, dword [edx + 0x28]
mov dword [ebp - 4], edi
test edi, edi
jne 0x4dbdca
mov ecx, dword [edx + 0x94]
push eax
cmp ecx, dword [edx + 0x98]
jbe 0x4dbd61
call fcn.004f6e30
jmp 0x4dbd66
call fcn.004f8110
mov edi, eax
add esp, 4
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], edi
test edi, edi
jne 0x4dbdca
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.0055a690
add eax, dword [ebp + 0x10]
push eax
push esi
call fcn.0048d3b0
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 0x4dbdc7
cmp dword [ebp + 0x14], eax
jne 0x4dbdc7
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 0x4dbe1f
test byte [eax + 0x1c], 0x20
je 0x4dbe16
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.0048c6e0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov edi, dword [ebp - 4]
add esp, 0x10
jmp 0x4dbe1f
push eax
call fcn.0051fb60
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 0x4dbca7
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret