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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa8
mov esi, dword [0x6dd4e0]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x38], edx
mov dword [ecx], esi
mov dword [esp + 0x34], esi
mov esi, dword [ebp + 0x10]
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
lea ecx, [esp + 0x60]
push esi
push eax
push dword [ebp + 8]
call fcn.0045fa60
add esp, 0xc
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x9c]
mov ecx, dword [esp + 0x78]
mov ebx, dword [esp + 0x7c]
mov edi, dword [esp + 0x64]
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
mov esi, eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x90]
mov dword [esp + 0x40], eax
mov byte [esp + 3], al
mov dword [esp + 0x2c], edx
and esi, 0xffffff00
mov dword [esp + 0x4c], esi
mov esi, edx
sub esi, ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x68]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x3c], ecx
neg ecx
mov dword [esp + 0x58], esi
mov esi, dword [esp + 0x84]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x94]
mov dword [esp + 0x50], ecx
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x98]
mov dword [esp + 0x24], esi
cmp ecx, 1
jne 0x4db530
mov ecx, dword [esp + 0x28]
lea eax, [ecx + edx - 1]
cmp eax, dword [esp + 0xc]
jae 0x4db8e0
movzx ebx, byte [esp + 3]
mov dword [esp + 4], ecx
mov dword [esp + 0x30], edi
or ebx, dword [esp + 0x4c]
mov dword [esp + 0x5c], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x20], ebx
jmp 0x4db68b
mov esi, 0xff0000
mov ecx, dword [esp + 0x18]
test dword [esp + 0x40], esi
je 0x4db55c
jmp 0x4db8e0
add edi, eax
test dword [esp + 0x40], esi
jne 0x4db8e0
mov bh, byte [esp + 3]
test edi, edi
je 0x4db586
cmp dword [esp + 0xc], edi
jbe 0x4db580
cmp byte [ecx + edi], 0xbf
jg 0x4db586
jmp 0x4db98d
jne 0x4db98d
mov al, bh
xor al, 1
cmp edi, dword [esp + 0xc]
mov byte [esp + 3], al
je 0x4db810
movzx edx, byte [ecx + edi]
test dl, dl
jns 0x4db600
mov eax, ecx
mov ecx, edx
movzx eax, byte [eax + edi + 1]
and ecx, 0x1f
and eax, 0x3f
cmp dl, 0xdf
jbe 0x4db5f0
mov esi, dword [esp + 0x18]
shl eax, 6
movzx esi, byte [esi + edi + 2]
and esi, 0x3f
or esi, eax
cmp dl, 0xf0
jb 0x4db645
mov eax, dword [esp + 0x18]
and ecx, 7
shl esi, 6
shl ecx, 0x12
movzx edx, byte [eax + edi + 3]
and edx, 0x3f
or edx, esi
mov esi, 0xff0000
or edx, ecx
mov ecx, eax
test bh, bh
je 0x4db604
jmp 0x4db660
shl ecx, 6
or ecx, eax
mov edx, ecx
mov ecx, dword [esp + 0x18]
nop dword [eax + eax]
test bh, bh
jne 0x4db660
cmp edx, 0x110000
je 0x4db8e0
mov eax, 1
cmp edx, 0x80
jb 0x4db550
mov eax, 2
cmp edx, 0x800
jb 0x4db550
cmp edx, 0x10000
mov eax, 4
sbb eax, 0
jmp 0x4db550
shl ecx, 0xc
or esi, ecx
mov ecx, dword [esp + 0x18]
mov edx, esi
mov esi, 0xff0000
test bh, bh
je 0x4db604
nop dword [eax]
mov esi, dword [esp + 0x24]
mov eax, edi
mov dword [esp + 4], edi
jmp 0x4db830
mov edx, dword [esp + 0x2c]
xor eax, eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 4]
lea eax, [eax + edx - 1]
cmp eax, dword [esp + 0xc]
jae 0x4db8e0
mov ebx, dword [esp + 0x18]
mov edi, 1
mov cl, byte [ebx + eax]
xor eax, eax
shld eax, edi, cl
mov edi, 1
shl edi, cl
test cl, 0x20
mov ecx, 0
cmovne eax, edi
cmovne edi, ecx
and eax, dword [esp + 0x5c]
and edi, dword [esp + 0x58]
or edi, eax
je 0x4db740
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
cmp eax, ecx
mov edi, ecx
mov ecx, dword [esp + 4]
cmova edi, eax
cmp dword [esp + 0x14], 0xffffffff
cmove edi, eax
mov eax, edx
cmp edi, edx
lea edx, [ebx + ecx]
mov ecx, edi
mov dword [esp + 0x28], edi
cmova eax, edi
nop dword [eax]
cmp eax, ecx
je 0x4db760
mov edi, dword [esp + 4]
add edi, ecx
cmp edi, dword [esp + 0xc]
jae 0x4db949
movzx ebx, byte [esi + ecx]
lea edi, [ecx + 1]
cmp bl, byte [edx + ecx]
mov ecx, edi
je 0x4db6f0
mov eax, dword [esp + 4]
add eax, dword [esp + 0x54]
add eax, edi
cmp dword [esp + 0x14], 0xffffffff
mov dword [esp + 4], eax
jne 0x4db66f
mov edx, dword [esp + 0x2c]
jmp 0x4db679
add dword [esp + 4], edx
xor eax, eax
cmp dword [esp + 0x14], 0xffffffff
jne 0x4db675
jmp 0x4db679
cmp dword [esp + 0x14], 0xffffffff
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
mov eax, 0
cmove edi, eax
nop dword [eax]
cmp edi, ecx
jae 0x4db7e0
mov esi, dword [esp + 0x24]
dec ecx
cmp ecx, edx
jae 0x4db969
mov eax, dword [esp + 4]
add eax, ecx
cmp eax, dword [esp + 0xc]
jae 0x4db978
movzx ebx, byte [esi + ecx]
mov esi, dword [esp + 0x18]
cmp bl, byte [esi + eax]
je 0x4db780
mov eax, dword [esp + 4]
mov esi, dword [esp + 0x24]
add eax, dword [esp + 0x48]
cmp dword [esp + 0x14], 0xffffffff
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
jne 0x4db675
jmp 0x4db679
mov eax, dword [esp + 4]
cmp dword [esp + 0x14], 0xffffffff
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x30]
lea ecx, [eax + edx]
mov eax, 0
cmovne esi, eax
mov dword [esp + 0x28], ecx
mov eax, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x24]
jmp 0x4db830
mov esi, dword [esp + 0xc]
test bh, bh
mov edi, esi
mov eax, esi
mov dword [esp + 4], esi
mov esi, dword [esp + 0x24]
je 0x4db8e0
nop dword [eax + eax]
test ecx, ecx
je 0x4db8d0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 4]
mov dword [esp + 0x30], edi
add ecx, eax
add edx, eax
mov eax, dword [esp + 0x1c]
sub edx, ecx
mov dword [esp + 0x10], ecx
mov ebx, edx
mov eax, dword [eax + 4]
sub eax, dword [esp + 8]
cmp eax, edx
jb 0x4db8ae
mov edi, dword [esp + 8]
mov eax, dword [esp + 0x34]
add eax, edi
push ebx
push dword [esp + 0x14]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
add edi, ebx
mov edx, dword [esp + 0x2c]
mov dword [esp + 8], edi
mov dword [eax + 8], edi
mov dword [esp + 0x10], ecx
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x50]
cmp ecx, 1
jne 0x4db530
jmp 0x4db4f6
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 8]
mov ecx, edi
push ebx
call fcn.005f2340
add esp, 4
mov eax, dword [edi]
mov ecx, dword [edi + 8]
mov dword [esp + 0x34], eax
mov dword [esp + 8], ecx
jmp 0x4db867
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 4]
add esi, edx
add ecx, edx
sub ecx, esi
mov dword [esp + 0x10], esi
mov edi, ecx
sub eax, dword [esp + 8]
cmp eax, ecx
jb 0x4db92d
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 8]
mov eax, dword [esi]
add eax, ebx
push edi
push dword [esp + 0x14]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
add ebx, edi
mov dword [esi + 8], ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 8]
mov ecx, esi
push edi
call fcn.005f2340
add esp, 4
mov eax, dword [esi + 8]
mov dword [esp + 8], eax
jmp 0x4db906
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0xc]
add ecx, dword [esp + 4]
cmp edx, ecx
cmova ecx, edx
push 0x6dd4b0
call fcn.0045a150
add esp, 4
ud2
push 0x6dd4c0
call fcn.0045a150
add esp, 4
ud2
mov edx, dword [esp + 0xc]
mov ecx, eax
push 0x6dd4d0
call fcn.0045a150
add esp, 4
ud2
mov edx, dword [esp + 0xc]
push 0x6dd4e8
push edx
push edi
call fcn.0045d720
add esp, 0xc
ud2