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

Disassembly:
sub esp, 0x398
mov eax, dword [0x718924]
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 0x4997a7
mov eax, dword [ebp]
cmp edi, dword [eax + 4]
jge 0x4997a7
cmp dword [ebp + 4], 0xffffffff
je 0x4991db
push eax
call fcn.0049c9e0
add esp, 4
push esi
mov dword [ebp + 4], 0xffffffff
cmp edi, dword [ebp + 0x238]
jne 0x499219
cmp edi, 0xffffffff
je 0x499219
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.004cb998
add esp, 0x398
ret 8
mov eax, dword [ebp]
cmp edi, 0xffffffff
jne 0x499264
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 0x4991fc
cmp dword [eax + 0x10], edi
jle 0x499278
push eax
call fcn.0049ca60
mov eax, dword [ebp]
add esp, 4
cmp dword [eax + 0x10], edi
jge 0x4992d8
mov esi, eax
nop dword [eax]
mov eax, esi
test esi, esi
je 0x4992d1
cmp dword [esi + 0x18], 0
je 0x4992d1
mov edx, dword [esi + 0x10]
inc edx
cmp edx, dword [esi + 4]
je 0x4992d1
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.0049d310
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 0x499280
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.0049d310
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x48]
push eax
push dword [ebp]
call fcn.0049d120
add esp, 0x34
test eax, eax
je 0x499322
mov eax, 0x700
jmp 0x4991fe
mov eax, dword [ebp]
mov ecx, dword [eax]
cmp byte [ecx], 0
je 0x499349
cmp byte [ecx + 1], 0
je 0x49937a
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 0x499350
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x1c], eax
mov esi, dword [esp + 0x18]
push esi
call fcn.004cba04
mov ecx, dword [ebp]
mov edi, eax
push dword [ecx]
push esi
push 1
push edi
call fcn.0049c870
add esp, 0x14
cmp eax, esi
je 0x499384
push edi
call fcn.004cb4e9
add esp, 4
mov eax, 0x800
jmp 0x4991fe
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 0x4993c8
cmp word [esi + 2], 0x3a
jne 0x4993c8
add esi, 4
jmp 0x4993b4
cmp eax, 0x5c
jne 0x4993d2
add esi, 2
jmp 0x4993b4
cmp eax, 0x2f
jne 0x4993dc
add esi, 2
jmp 0x4993b4
push 0x67b38c
push esi
call fcn.004e32e1
add esp, 8
test eax, eax
je 0x4993f3
lea esi, [eax + 8]
jmp 0x4993b4
push str..._
push esi
call fcn.004e32e1
add esp, 8
test eax, eax
je 0x49940a
lea esi, [eax + 8]
jmp 0x4993b4
push 0x67b380
push esi
call fcn.004e32e1
add esp, 8
test eax, eax
je 0x499421
lea esi, [eax + 8]
jmp 0x4993b4
push 0x68625c
push esi
call fcn.004e32e1
add esp, 8
test eax, eax
je 0x49943b
lea esi, [eax + 8]
jmp 0x4993b4
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 0x499440
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 0x499495
cmp eax, 7
je 0x499495
cmp eax, 0xb
je 0x499495
cmp eax, 0xe
jne 0x4994cb
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 0x4994cf
mov edx, dword [esp + 0x1c]
xor eax, eax
mov dword [ebx + 0x20c], 0
cmp byte [esp + 0x10], al
je 0x4994f0
mov dword [ebx + 0x20c], 0x10
mov eax, 0x10
test dl, dl
je 0x4994fd
or eax, 0x20
mov dword [ebx + 0x20c], eax
cmp byte [esp + 0x24], 0
je 0x49950d
or eax, 2
mov dword [ebx + 0x20c], eax
test cl, cl
je 0x49951a
or eax, 1
mov dword [ebx + 0x20c], eax
cmp byte [esp + 0x14], 0
je 0x49952a
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 dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x2c]
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 0x49977c
mov byte [esp + 0x12], 0
movzx eax, byte [esi + edi]
mov ecx, 0x686268
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 0x499660
test dl, dl
je 0x49965c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x499660
add eax, 2
add ecx, 2
test dl, dl
jne 0x499640
xor eax, eax
jmp 0x499665
sbb eax, eax
or eax, 1
test eax, eax
je 0x499681
movzx eax, byte [esi + edi + 2]
add eax, 4
add esi, eax
lea eax, [esi + 4]
cmp eax, dword [esp + 0x18]
jb 0x499620
jmp 0x49977c
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 0x4996ee
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 0x499735
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 0x49977c
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 0x499789
push edi
call fcn.004cb4e9
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 0x4991fc
mov eax, 0x10000
jmp 0x4991ff