Function at 0x402c05
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov eax, 0x417537
call fcn.00416288
sub esp, 0x134
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
lea edi, [esi + 0x10]
mov dword [ebp - 4], ebx
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov dword [ebp - 0x14], edi
mov byte [edi], bl
mov byte [ebp - 4], 1
or dword [esi + 0x38], 0xffffffff
or dword [esi + 0x3c], 0xffffffff
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov word [esi + 0x34], bx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x402c6f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x10], eax
push 0x105
lea eax, [ebp - 0x140]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x402ebb
lea eax, [ebp - 0x140]
push eax
lea esi, [ebp - 0x38]
call fcn.004098c2
pop ecx
mov ebx, eax
mov eax, edi
mov byte [ebp - 4], 2
call fcn.004033e8
push 1
xor edi, edi
mov byte [ebp - 4], 1
call fcn.00403438
call fcn.0040d480
cdq
mov ecx, 0x340e873
idiv ecx
mov dword [ebp - 0x10], edx
call fcn.0040d480
cdq
mov ecx, 0x1552
idiv ecx
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
imul eax, ecx
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x10]
je 0x402d09
push str.windows5459XP
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x402d09
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x14], 0x10
jb 0x402d14
mov eax, dword [eax]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [ebp + 8]
mov dword [esi + 0x38], eax
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x402d50
push str.windows5460XP
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x402d50
mov dword [ebp - 0x10], ebx
call fcn.0040d480
cdq
mov ecx, 0x1555
idiv ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 0x3415da6
mov eax, dword [ebp - 0x10]
test eax, eax
mov eax, dword [ebp - 0x14]
jne 0x402d74
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x38]
cmp eax, 0xffffffff
je 0x402dd1
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
je 0x402dd1
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x402db3
push str.windows5464XP
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x402db3
mov dword [ebp - 0x10], ebx
push ebx
push ebx
push ebx
push 4
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
push dword [esi + 0x38]
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x2c], eax
cmp dword [esi + 0x30], ebx
je 0x402eb8
mov esi, dword [ebp + 8]
mov byte [ebp - 0x18], bl
xor eax, eax
lea edi, [ebp - 0x17]
stosb byte es:[edi], al
mov al, byte [0x41a45d]
mov edi, dword [esi + 0x30]
mov byte [ebp - 0x18], al
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x402e10
push str.windows5484XP
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x402e10
mov dword [ebp - 0x10], ebx
mov edi, dword [edi + 0x3c]
add edi, dword [esi + 0x30]
call fcn.0040d480
cdq
mov ecx, 0x345073e
idiv ecx
mov dword [ebp - 0x10], edx
call fcn.0040d480
cdq
mov ecx, 0x156d
idiv ecx
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [esi + 0x2c]
imul eax, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x9c]
add eax, dword [edi + 0x98]
cmp eax, ebx
jne 0x402e9a
mov edi, dword [esi + 0x30]
push ebx
call fcn.0040d29d
push ebx
push edi
push eax
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
call fcn.0040cdf0
push dword [esi + 4]
push dword [esi + 8]
call fcn.004028db
add esp, 0x18
mov dword [esi + 0xc], eax
test eax, eax
je 0x402e8e
mov edx, dword [eax]
mov ecx, dword [esi + 4]
sub ecx, dword [edx + 0xc]
jmp 0x402e90
xor ecx, ecx
test eax, eax
setne al
mov dword [esi], ecx
mov byte [esi + 0x34], al
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x14], 0
call esi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x402eb8
call esi
mov dword [ebp - 0x14], eax
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4