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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov edx, dword [esi + 0x64]
mov edi, dword [esi + 0x68]
mov dword [esp + 0x18], edx
cmp edx, edi
je 0x4db5f5
mov bl, byte [esi + 0x5c]
mov dword [esp + 0x14], edx
cmp bl, 1
jne 0x4db336
cmp dword [esi + 0x58], 0
jl 0x4db5e0
mov ecx, edi
mov eax, 0x51eb851f
sub ecx, edx
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esi + 0x58]
cmp edx, eax
jge 0x4db5e0
mov eax, dword [esp + 0x18]
mov ecx, edx
imul edi, edx, 0xc8
add edi, eax
mov dword [esp + 0x1c], eax
mov ebx, dword [edi]
test ebx, 0x10000000
je 0x4db3c7
test byte [ebp + 8], 1
jne 0x4db3cb
mov ebx, dword [edi + 0xc0]
mov eax, dword [esp + 0x14]
cmp ebx, 0xffffffff
jne 0x4db39e
mov ecx, dword [edi + 0xc4]
mov edx, eax
imul edi, ecx, 0xc8
add edi, eax
mov dword [esi + 0x58], ecx
mov ebx, dword [edi]
jmp 0x4db3cf
mov ecx, edx
test ebx, ebx
je 0x4db3b9
mov eax, dword [edi + 0xc4]
mov dword [esi + 0x58], eax
dec dword [edi + 0xc0]
mov ecx, dword [esi + 0x58]
mov eax, dword [esi + 0x64]
imul edi, ecx, 0xc8
mov edx, eax
add edi, eax
mov ebx, dword [edi]
jmp 0x4db3cf
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], edx
test ebx, 0x20000000
je 0x4db43b
test byte [ebp + 8], 2
jne 0x4db410
mov bl, byte [esi + 0x5c]
xor eax, eax
cmp bl, 1
mov dword [esp + 0x14], edx
setne al
lea eax, [eax*2 - 1]
add eax, ecx
mov dword [esi + 0x58], eax
mov edi, dword [esi + 0x68]
cmp edx, edi
jne 0x4db327
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 0x68]
push ecx
mov ecx, eax
call fcn.00435080
mov eax, dword [esi + 0x64]
add esp, 4
mov dword [esi + 0x68], eax
mov dword [esi + 0x4c], 0
mov dword [esi + 0x60], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test bl, 1
je 0x4db448
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x6c]
test bl, 2
je 0x4db455
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x74]
test bl, 4
je 0x4db462
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x70]
test bl, 8
je 0x4db46f
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x78]
test ebx, 0x800000
je 0x4db482
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x88]
test ebx, 0x1000000
je 0x4db495
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x80]
test ebx, 0x100
je 0x4db4a8
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x84]
test ebx, 0x100000
je 0x4db4bb
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x8c]
test ebx, 0x200000
je 0x4db4ce
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x90]
test ebx, 0x2000000
je 0x4db4de
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x7c]
test ebx, ebx
jne 0x4db4ed
mov edi, dword [esi + 0x54]
mov dword [esi + 0x4c], ebx
jmp 0x4db5b8
mov edi, dword [edi + 4]
call fcn.004cc620
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4db524
mov ebx, dword [ecx + 0x3c]
mov eax, 0x6bca1af3
mov ecx, dword [ecx + 0x40]
sub ecx, ebx
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4db524
mov eax, dword [ebx + 0x1058]
shr eax, 0xe
and al, 1
jne 0x4db553
cmp byte [esi + 0x5d], 0
je 0x4db553
call fcn.00426230
sub eax, 0
je 0x4db553
sub eax, 1
je 0x4db546
sub eax, 1
jne 0x4db553
lea edi, [eax + 1]
mov dword [esi + 0x74], eax
jmp 0x4db553
mov eax, dword [esi + 0x74]
cdq
sub eax, edx
shr edi, 1
sar eax, 1
mov dword [esi + 0x74], eax
mov ebx, dword [esi + 0x4c]
mov eax, 1
cmp edi, eax
mov dword [esi + 0x50], 1
cmovl edi, eax
mov dword [esi + 0x54], edi
test bl, 4
je 0x4db57a
mov edx, dword [esi]
lea eax, [esi + 0x7c]
push eax
mov ecx, esi
call dword [edx + 0x2c]
test bl, 2
je 0x4db591
cmp byte [esi + 0x98], 1
jne 0x4db591
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x20]
test bl, 8
je 0x4db5a5
mov edx, dword [esi]
mov ecx, esi
movzx eax, byte [esi + 0x90]
push eax
call dword [edx + 0x38]
test ebx, 0x2000000
je 0x4db5b8
mov ecx, dword [esi + 0x114]
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [esi]
mov ecx, esi
push edi
push ebx
call dword [eax + 0x9c]
xor eax, eax
cmp byte [esi + 0x5c], 1
setne al
lea eax, [eax*2 - 1]
add dword [esi + 0x58], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ecx
mov ecx, dword [esp + 0x1c]
mov edx, edi
call fcn.00435080
mov eax, dword [esi + 0x64]
add esp, 4
mov dword [esi + 0x68], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4