Function at 0x404611
Capabilities:
Check for time delay via gettickcount
Get file size
Read file via mapping

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x40e170]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 0x68
mov eax, 0x40b731
call fcn.0040aeb2
mov edi, dword [ebp + 0x218]
xor ebx, ebx
push ebx
mov dword [ebp - 0x14], edi
mov byte [ebp - 0xe], bl
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov esi, eax
cmp esi, ebx
jge 0x404667
push esi
push 0x8c
call fcn.00403e72
pop ecx
pop ecx
xor al, al
jmp 0x404c17
cmp byte [0x42e1c9], bl
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x40], ebx
je 0x404693
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x2c], eax
mov al, byte [ebp + 0x220]
mov byte [0x42e1ce], al
mov eax, dword [ebp + 0x21c]
and eax, 2
mov dword [0x42e1c0], ebx
mov dword [0x40e1bc], ebx
mov dword [ebp - 0x74], eax
je 0x404821
cmp byte [0x42e1c9], bl
mov dword [ebp - 0x1c], ebx
je 0x4046d0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x60]
push ecx
xor eax, eax
push 0x40125c
inc eax
push eax
push ebx
push 0x40122c
mov dword [0x42e1c0], eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x404803
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
lea edx, [ebp - 0x58]
push edx
push 0x40123c
push ebx
push edi
push eax
call dword [ecx + 0x10]
mov esi, eax
cmp esi, ebx
jl 0x4047ed
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push 0x40124c
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x4047d5
push 0xc
call fcn.004053c8
pop ecx
mov dword [ebp - 0x64], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
mov ecx, 0x40412d
je 0x404758
mov dword [eax], 0x40136c
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov edi, eax
jmp 0x40475a
xor edi, edi
or dword [ebp - 4], 0xffffffff
cmp edi, ebx
je 0x4047bf
mov eax, dword [edi]
push ebx
push ecx
push edi
call dword [eax + 0x10]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push edi
push 1
push eax
call dword [ecx + 0xc]
mov esi, eax
cmp esi, ebx
jl 0x4047b1
cmp byte [0x42e1c9], bl
mov dword [0x42e1c0], ebx
je 0x404793
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
cmp byte [0x42e1c9], bl
mov esi, eax
je 0x4047ca
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x4c], eax
jmp 0x4047ca
push esi
push 0x96
call fcn.00403e72
pop ecx
jmp 0x4047c9
push 0xa0
call fcn.00403e72
pop ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4047e2
push esi
push 0xb4
call fcn.00403e72
pop ecx
pop ecx
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4047f8
push 0xbe
call fcn.00403e72
pop ecx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x404810
push esi
push 0xc8
call fcn.00403e72
pop ecx
pop ecx
cmp byte [0x42e1c9], bl
je 0x404821
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x44], eax
call dword [sym.imp.MSVCR80.dll___iob_func]
add eax, 0x20
push eax
call dword [sym.imp.MSVCR80.dll_fflush]
test byte [ebp + 0x21c], 1
mov eax, dword [0x42e1c0]
pop ecx
je 0x404844
cmp eax, ebx
je 0x40485d
test byte [ebp + 0x21c], 4
je 0x404afd
cmp dword [0x42e1c4], eax
jbe 0x404afd
cmp byte [0x42e1c9], bl
mov dword [ebp - 0x70], 0x4012ac
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0xe], 1
je 0x40487f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x18]
push eax
push 0x40128c
push 1
push ebx
push 0x40127c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jge 0x4048ac
push 0xd2
call fcn.00403e72
pop ecx
jmp 0x404adf
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov esi, eax
cmp esi, ebx
jge 0x4048c2
push 0xdc
jmp 0x4048a1
push ebx
push 0x10000000
push 3
push ebx
push 3
push 0x80000000
push dword [ebp - 0x14]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x34], ebx
call fcn.00408ee2
cmp eax, 0xffffffff
mov dword [ebp - 0x3c], eax
jne 0x40490c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x14]
push 0xe6
call fcn.00403e72
add esp, 0xc
inc dword [0x42e1c0]
jmp 0x404ad2
lea ecx, [ebp - 0x34]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
jne 0x404951
call edi
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x80004005
je 0x404951
push esi
push dword [ebp - 0x14]
push 0xf0
call fcn.00403e72
add esp, 0xc
inc dword [0x42e1c0]
jmp 0x404ac9
cmp dword [ebp - 0x34], ebx
je 0x404961
push 0xfa
call fcn.00403e72
pop ecx
push ebx
push ebx
push ebx
push 2
push ebx
push dword [ebp - 0x3c]
call fcn.00408fe2
cmp eax, ebx
mov dword [ebp - 0x5c], eax
jne 0x404996
call edi
mov esi, eax
push esi
push dword [ebp - 0x14]
push 0x104
call fcn.00403e72
add esp, 0xc
inc dword [0x42e1c0]
jmp 0x404abb
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [ebp - 0x28], eax
jne 0x4049c9
call edi
mov esi, eax
push esi
push dword [ebp - 0x14]
push 0x10e
call fcn.00403e72
add esp, 0xc
inc dword [0x42e1c0]
jmp 0x404aad
push ebx
lea eax, [ebp]
push eax
push 0x104
push dword [ebp - 0x14]
call fcn.00408cc9
lea edx, [ebp - 0x24]
push edx
mov edi, eax
mov eax, dword [ebp - 0x18]
push 0x4035bc
mov word [ebp + 0x208], bx
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jge 0x404a0a
push esi
push 0x118
call fcn.00403e72
pop ecx
pop ecx
jmp 0x4049be
test byte [ebp + 0x21c], 8
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x6c], eax
je 0x404a20
mov dword [ebp - 0x20], 1
test byte [ebp + 0x21c], 0x10
je 0x404a31
mov byte [0x42e1c8], bl
jmp 0x404a3c
or dword [ebp - 0x20], 2
mov byte [0x42e1c8], 1
cmp byte [0x42e1c9], bl
je 0x404a4d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x64]
push edx
push eax
call dword [ecx + 0x24]
mov esi, eax
cmp esi, ebx
jge 0x404a68
push esi
push 0x17c
jmp 0x404a01
cmp edi, ebx
lea ecx, [ebp]
jne 0x404a72
mov ecx, dword [ebp - 0x14]
push dword [ebp - 0x68]
mov eax, dword [ebp - 0x24]
push dword [ebp - 0x28]
mov edx, dword [eax]
push ecx
mov ecx, dword [0x42e1c4]
sub ecx, dword [0x42e1c0]
push ebx
push ecx
push dword [ebp - 0x20]
lea ecx, [ebp - 0x70]
push dword [ebp - 0x64]
push ecx
push eax
call dword [edx + 0xc]
cmp byte [0x42e1c9], bl
mov esi, eax
je 0x404aad
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x28], ebx
je 0x404abb
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x5c], ebx
je 0x404ac9
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x404adf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x404aec
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [0x42e1c9], bl
je 0x404afd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x30], eax
cmp esi, ebx
jge 0x404b14
cmp esi, 0x80070002
jne 0x404b14
push 0x122
call fcn.00403e72
pop ecx
mov ecx, dword [0x42e1c0]
cmp ecx, ebx
sete byte [ebp - 0xd]
cmp byte [ebp + 0x220], bl
je 0x404b33
push ecx
push dword [ebp - 0x14]
call fcn.00404104
jmp 0x404b9c
cmp byte [ebp - 0xd], bl
je 0x404b57
push 0x136
call fcn.00403e72
pop ecx
push dword [ebp - 0x14]
call fcn.00403bf2
push 0x137
call fcn.00403e72
jmp 0x404b85
cmp ecx, 1
mov eax, 0x4013e4
je 0x404b66
mov eax, 0x4013e0
push eax
push ecx
push 0x46
call fcn.00403e72
add esp, 0xc
push dword [ebp - 0x14]
call fcn.00403bf2
push 0x4013dc
call dword [sym.imp.MSVCR80.dll_printf]
mov eax, dword [0x40e1bc]
cmp eax, ebx
pop ecx
je 0x404b9c
push eax
push 0x140
call fcn.00403e72
pop ecx
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp byte [0x42e1c9], bl
je 0x404c14
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x2c]
push eax
push 0x14a
call fcn.00403e72
cmp dword [ebp - 0x74], ebx
pop ecx
pop ecx
je 0x404bea
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x50]
push eax
push 0x154
call fcn.00403e72
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x54]
push eax
push 0x15e
call fcn.00403e72
add esp, 0x10
cmp byte [ebp - 0xe], bl
je 0x404c14
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x38]
push eax
push 0x168
call fcn.00403e72
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x48]
push eax
push 0x172
call fcn.00403e72
add esp, 0x10
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.0040ae65
add ebp, 0x210
leave
ret 0xc