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

Disassembly:
sub esp, 0x398
mov eax, dword [0x567e00]
xor eax, esp
mov dword [esp + 0x394], eax
push ebx
mov ebx, dword [esp + 0x3a4]
push ebp
push edi
mov edi, dword [esp + 0x3a8]
mov ebp, ecx
cmp edi, 0xffffffff
jl 0x4dbbd7
mov eax, dword [ebp]
cmp edi, dword [eax + 4]
jge 0x4dbbd7
cmp dword [ebp + 4], 0xffffffff
je 0x4db60b
push eax
call fcn.004dee80
add esp, 4
push esi
mov dword [ebp + 4], 0xffffffff
cmp edi, dword [ebp + 0x238]
jne 0x4db649
cmp edi, 0xffffffff
je 0x4db649
lea esi, [ebp + 8]
mov ecx, 0x8c
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x3a0]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c6f8b
add esp, 0x398
ret 8
mov eax, dword [ebp]
cmp edi, 0xffffffff
jne 0x4db694
mov eax, dword [eax + 4]
mov dword [ebx], eax
xor eax, eax
mov word [ebx + 4], ax
mov dword [ebx + 0x20c], eax
mov dword [ebx + 0x210], eax
mov dword [ebx + 0x214], eax
mov dword [ebx + 0x218], eax
mov dword [ebx + 0x21c], eax
mov dword [ebx + 0x220], eax
mov dword [ebx + 0x224], eax
mov dword [ebx + 0x228], eax
mov dword [ebx + 0x22c], eax
jmp 0x4db62c
cmp dword [eax + 0x10], edi
jle 0x4db6a8
push eax
call fcn.004def00
mov eax, dword [ebp]
add esp, 4
cmp dword [eax + 0x10], edi
jge 0x4db708
mov esi, eax
nop dword [eax]
mov eax, esi
test esi, esi
je 0x4db701
cmp dword [esi + 0x18], 0
je 0x4db701
mov edx, dword [esi + 0x10]
inc edx
cmp edx, dword [esi + 4]
je 0x4db701
mov ecx, dword [esi + 0x50]
mov eax, dword [esi + 0x48]
add ecx, 0x2e
add ecx, dword [esi + 0x4c]
push 0
push 0
push 0
push 0
add eax, ecx
mov dword [esi + 0x10], edx
add dword [esi + 0x14], eax
lea eax, [esi + 0x78]
push 0
push 0
push eax
lea eax, [esi + 0x28]
push eax
push esi
call fcn.004df900
add esp, 0x24
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov eax, dword [ebp]
mov esi, eax
cmp dword [eax + 0x10], edi
jl 0x4db6b0
push 0
push 0
push 0
push 0
push 0x104
lea ecx, [esp + 0xac]
push ecx
push 0
lea ecx, [esp + 0x54]
push ecx
push eax
call fcn.004df900
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x48]
push eax
push dword [ebp]
call fcn.004df710
add esp, 0x34
test eax, eax
je 0x4db752
mov eax, 0x700
jmp 0x4db62e
mov eax, dword [ebp]
mov ecx, dword [eax]
cmp byte [ecx], 0
je 0x4db779
cmp byte [ecx + 1], 0
je 0x4db7aa
mov eax, dword [ecx + 0xc]
add eax, dword [esp + 0x10]
push 0
push 0
push eax
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4db780
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x1c], eax
mov esi, dword [esp + 0x18]
push esi
call fcn.004c6f7d
mov ecx, dword [ebp]
mov edi, eax
push dword [ecx]
push esi
push 1
push edi
call fcn.004ded10
add esp, 0x14
cmp eax, esi
je 0x4db7b4
push edi
call fcn.004c6f86
add esp, 4
mov eax, 0x800
jmp 0x4db62e
mov eax, dword [ebp]
push 0x104
mov eax, dword [eax + 0x10]
mov dword [ebx], eax
lea eax, [esp + 0x1a0]
push eax
push 0xffffffffffffffff
lea eax, [esp + 0xa4]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea esi, [esp + 0x19c]
movzx eax, word [esi]
test ax, ax
je 0x4db80c
cmp word [esi + 2], 0x3a
jne 0x4db7f8
add esi, 4
jmp 0x4db7e4
cmp eax, 0x5c
jne 0x4db802
add esi, 2
jmp 0x4db7e4
cmp eax, 0x2f
jne 0x4db80c
add esi, 2
jmp 0x4db7e4
push 0x51847c
push esi
call sub.VCRUNTIME140.dll_wcsstr
add esp, 8
test eax, eax
je 0x4db823
lea esi, [eax + 8]
jmp 0x4db7e4
push str..._
push esi
call sub.VCRUNTIME140.dll_wcsstr
add esp, 8
test eax, eax
je 0x4db83a
lea esi, [eax + 8]
jmp 0x4db7e4
push 0x518470
push esi
call sub.VCRUNTIME140.dll_wcsstr
add esp, 8
test eax, eax
je 0x4db851
lea esi, [eax + 8]
jmp 0x4db7e4
push str._.._
push esi
call sub.VCRUNTIME140.dll_wcsstr
add esp, 8
test eax, eax
je 0x4db86b
lea esi, [eax + 8]
jmp 0x4db7e4
mov ecx, ebx
sub ecx, esi
nop
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi + 2], ax
test ax, ax
jne 0x4db870
mov edx, dword [esp + 0x6c]
mov eax, edx
shr eax, 0x1e
mov ecx, edx
and eax, 0xffffff01
shr ecx, 0x17
mov dword [esp + 0x10], eax
not cl
mov eax, dword [esp + 0x38]
and cl, 1
shr eax, 8
mov byte [esp + 0x24], 0
mov byte [esp + 0x14], 0
mov byte [esp + 0x1c], 1
test eax, eax
je 0x4db8c5
cmp eax, 7
je 0x4db8c5
cmp eax, 0xb
je 0x4db8c5
cmp eax, 0xe
jne 0x4db8fb
mov eax, edx
mov cl, dl
shr eax, 1
and cl, 1
and eax, 0xffffff01
mov dword [esp + 0x24], eax
mov eax, edx
shr eax, 2
and eax, 0xffffff01
mov dword [esp + 0x14], eax
mov eax, edx
shr eax, 4
and al, 1
shr edx, 5
mov byte [esp + 0x10], al
and edx, 0xffffff01
jmp 0x4db8ff
mov edx, dword [esp + 0x1c]
xor eax, eax
mov dword [ebx + 0x20c], 0
cmp byte [esp + 0x10], al
je 0x4db920
mov dword [ebx + 0x20c], 0x10
mov eax, 0x10
test dl, dl
je 0x4db92d
or eax, 0x20
mov dword [ebx + 0x20c], eax
cmp byte [esp + 0x24], 0
je 0x4db93d
or eax, 2
mov dword [ebx + 0x20c], eax
test cl, cl
je 0x4db94a
or eax, 1
mov dword [ebx + 0x20c], eax
cmp byte [esp + 0x14], 0
je 0x4db95a
or eax, 4
mov dword [ebx + 0x20c], eax
mov edx, dword [esp + 0x48]
mov esi, 0x7bc
mov eax, dword [esp + 0x50]
mov ecx, edx
mov dword [ebx + 0x228], eax
mov eax, dword [esp + 0x54]
mov dword [ebx + 0x22c], eax
shr ecx, 0x10
mov ax, cx
shr ax, 9
add ax, si
mov word [esp + 0x88], ax
mov eax, ecx
shr eax, 5
and ecx, 0x1f
and eax, 0xf
mov word [esp + 0x8e], cx
mov word [esp + 0x8a], ax
mov ax, dx
shr ax, 0xb
mov word [esp + 0x90], ax
mov eax, edx
shr eax, 5
and edx, 0x1f
and eax, 0x3f
add edx, edx
mov word [esp + 0x92], ax
xor eax, eax
mov word [esp + 0x96], ax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x8c]
mov word [esp + 0x98], dx
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x30], ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov ecx, dword [esp + 0x30]
xor esi, esi
cmp dword [esp + 0x18], 4
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x210], ecx
mov dword [ebx + 0x214], eax
mov dword [ebx + 0x218], ecx
mov dword [ebx + 0x21c], eax
mov dword [ebx + 0x220], ecx
mov dword [ebx + 0x224], eax
jbe 0x4dbbac
mov byte [esp + 0x12], 0
movzx eax, byte [esi + edi]
mov ecx, 0x538aa8
mov byte [esp + 0x10], al
movzx eax, byte [esi + edi + 1]
mov byte [esp + 0x11], al
lea eax, [esp + 0x10]
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4dba90
test dl, dl
je 0x4dba8c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4dba90
add eax, 2
add ecx, 2
test dl, dl
jne 0x4dba70
xor eax, eax
jmp 0x4dba95
sbb eax, eax
or eax, 1
test eax, eax
je 0x4dbab1
movzx eax, byte [esi + edi + 2]
add eax, 4
add esi, eax
lea eax, [esi + 4]
cmp eax, dword [esp + 0x18]
jb 0x4dba50
jmp 0x4dbbac
mov al, byte [esi + edi + 4]
add esi, 5
movzx ecx, al
mov edx, ecx
shr ecx, 2
shr edx, 1
and cl, 1
and edx, 0xffffff01
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], edx
test al, 1
je 0x4dbb1e
movzx eax, byte [esi + edi + 3]
movzx ecx, byte [esi + edi + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edi + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edi]
shl eax, 8
add esi, 4
or eax, ecx
mov ecx, 0x989680
imul ecx
add eax, 0xd53e8000
mov dword [ebx + 0x220], eax
adc edx, 0x19db1de
mov dword [ebx + 0x224], edx
mov edx, dword [esp + 0x1c]
test dl, dl
je 0x4dbb65
movzx eax, byte [esi + edi + 3]
movzx ecx, byte [esi + edi + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edi + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edi]
shl eax, 8
add esi, 4
or eax, ecx
mov ecx, 0x989680
imul ecx
add eax, 0xd53e8000
mov dword [ebx + 0x210], eax
adc edx, 0x19db1de
mov dword [ebx + 0x214], edx
cmp byte [esp + 0x14], 0
je 0x4dbbac
movzx eax, byte [esi + edi + 3]
movzx ecx, byte [esi + edi + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edi + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edi]
shl eax, 8
or eax, ecx
mov ecx, 0x989680
imul ecx
add eax, 0xd53e8000
mov dword [ebx + 0x218], eax
adc edx, 0x19db1de
mov dword [ebx + 0x21c], edx
test edi, edi
je 0x4dbbb9
push edi
call fcn.004c6f86
add esp, 4
mov eax, dword [esp + 0x3ac]
lea edi, [ebp + 8]
mov ecx, 0x8c
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov dword [ebp + 0x238], eax
jmp 0x4db62c
mov eax, 0x10000
jmp 0x4db62f