Function at 0x414000
Capabilities:
Check for time delay via gettickcount
Check if file exists
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6771d3
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x71906c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 0x700ed0
push 0x66
push 0
mov byte [ebp - 0x189], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x414054
xor al, al
jmp 0x414310
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41404d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x194], eax
test edi, edi
jne 0x414081
test eax, eax
je 0x41404d
movsx eax, byte [edi + 1]
push eax
movsx eax, byte [edi]
push eax
lea eax, [ebp - 0x40]
push str._02X_02X
push eax
call fcn.004cc186
add esp, 0x10
push str.377A
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.00404c80
test eax, eax
jne 0x4142c2
push 0x3a8
sub esp, 0x18
mov eax, esp
push 0
push 0x1c
push eax
call fcn.004cde99
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
call fcn.004cce1b
add esp, 0x20
mov ecx, ebx
push eax
call fcn.004068d0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x414116
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41410c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41432e
push edx
push ecx
call fcn.0042d6b0
add esp, 8
push ebx
call fcn.004cc37c
add esp, 4
test eax, eax
jne 0x41412f
push 0x700c48
mov ecx, ebx
call fcn.004067c0
push str.WinAssist
mov ecx, ebx
call fcn.004067c0
push 0x700c48
mov ecx, ebx
call fcn.004067c0
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x414151
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x41420e
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 1
push eax
push 0x3a8
sub esp, 0x18
mov ecx, esp
push ebx
call fcn.004069f0
lea eax, [ebp - 0x28]
push eax
call fcn.004cca9a
add esp, 0x20
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x414193
mov eax, dword [eax]
push eax
call fcn.004cdd37
mov byte [ebp - 4], 1
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4141da
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4141d0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414333
push edx
push ecx
call fcn.0042d6b0
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x41420a
mov edx, dword [ecx]
lea eax, [ebp - 0x68]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov byte [ebp - 4], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
cmp dword [ebx + 0x14], 0x10
mov ecx, ebx
mov dword [ebp - 0x190], eax
jb 0x414226
mov ecx, dword [ebx]
push 0
push 0x414340
push ecx
push dword [ebp - 0x194]
push edi
call fcn.004e7340
test eax, eax
sete byte [ebp - 0x189]
call esi
sub eax, dword [ebp - 0x190]
mov dword [ebp - 0x190], eax
call fcn.004d1e7e
test al, al
je 0x4142b9
mov ecx, dword [0x729d00]
test ecx, ecx
je 0x4142b9
cmp dword [ecx + 4], 4
jl 0x4142b9
sub esp, 0xc
lea ecx, [ebp - 0x188]
push 0x5a
push str.CDoWebInstLogic::FreeResPacket
push 4
call fcn.0040deb0
mov edi, eax
mov edx, str.free_res_file_millisecond:
mov byte [ebp - 4], 4
lea ecx, [edi + 0x30]
call fcn.0040dd20
push dword [ebp - 0x190]
lea ecx, [edi + 0x30]
call fcn.004194b0
mov ecx, dword [0x729d00]
push edi
call fcn.0040faa0
lea ecx, [ebp - 0x188]
call fcn.0040e2b0
cmp byte [ebp - 0x189], 0
jne 0x4142d4
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x4142d1
mov ebx, dword [ebx]
mov byte [ebx], 0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x41430a
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414300
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414338
push edx
push ecx
call fcn.0042d6b0
add esp, 8
mov al, byte [ebp - 0x189]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042d065
mov esp, ebp
pop ebp
ret 4
call fcn.0050cc3e
call fcn.0050cc3e
call fcn.0050cc3e
int3