Function at 0x402f9d
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, 0x4e8000
push 0x2000
add eax, 0x3e8
push esi
push ebx
mov dword [0x47af30], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 3
push 0x80000000
push esi
call fcn.00405f75
mov edi, eax
cmp edi, 0xffffffff
mov dword [0x40a018], edi
jne 0x402ff7
mov eax, 0x40a2b8
jmp 0x40325c
push esi
mov esi, 0x4d8000
push esi
call fcn.0040647f
push esi
call fcn.00405da0
push eax
push 0x4ec000
call fcn.0040647f
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [0x43c240], eax
mov esi, eax
jbe 0x403113
mov eax, dword [0x47af38]
mov edi, esi
neg eax
sbb eax, eax
and eax, 0x7e00
add eax, 0x200
cmp esi, eax
jb 0x403046
mov edi, eax
push edi
push 0x434230
call fcn.004034d4
test eax, eax
je 0x4031d2
cmp dword [0x47af38], ebx
jne 0x4030df
push 0x1c
lea eax, [ebp - 0x24]
push 0x434230
push eax
call fcn.00405f30
mov eax, dword [ebp - 0x24]
test eax, 0xfffffff0
jne 0x4030ec
cmp dword [ebp - 0x20], 0xdeadbeef
jne 0x4030ec
cmp dword [ebp - 0x14], 0x11111111
jne 0x4030ec
cmp dword [ebp - 0x18], 0x11111111
jne 0x4030ec
cmp dword [ebp - 0x1c], 0x11111111
jne 0x4030ec
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x43c230]
and eax, 2
or dword [0x47afe0], eax
mov eax, dword [ebp - 0xc]
cmp eax, esi
mov dword [0x47af38], ecx
ja 0x403216
test byte [ebp + 8], 8
jne 0x4030d1
test byte [ebp + 8], 4
jne 0x403113
inc dword [ebp - 8]
lea esi, [eax - 4]
cmp edi, esi
jbe 0x4030ec
mov edi, esi
jmp 0x4030ec
test byte [ebp + 8], 2
jne 0x4030ec
push ebx
call fcn.00402efb
pop ecx
cmp esi, dword [0x43c240]
jae 0x403105
push edi
push 0x434230
push dword [ebp - 4]
call fcn.0040694c
mov dword [ebp - 4], eax
add dword [0x43c230], edi
sub esi, edi
jne 0x40302b
push 1
call fcn.00402efb
cmp dword [0x47af38], ebx
pop ecx
je 0x403216
cmp dword [ebp - 8], ebx
je 0x403156
push dword [0x43c230]
call fcn.004034ea
lea eax, [ebp + 8]
push 4
push eax
call fcn.004034d4
test eax, eax
je 0x403216
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jne 0x403216
push dword [ebp - 0x10]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push 8
mov eax, 0x420220
pop edi
mov dword [0x428228], eax
mov dword [0x428224], eax
lea eax, [ebp - 0x22c]
push 0x4e0000
push eax
mov dword [0x41e680], edi
mov dword [0x41eb9c], ebx
mov dword [0x41eb98], ebx
mov dword [0x428220], 0x428220
call fcn.00405fa4
push ebx
push 0x4000100
push 2
push ebx
push ebx
lea eax, [ebp - 0x22c]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [0x40a01c], eax
jne 0x4031dc
mov eax, 0x40a230
jmp 0x40325c
push 1
call fcn.00402efb
pop ecx
jmp 0x403216
mov eax, dword [0x47af38]
add eax, 0x1c
push eax
call fcn.004034ea
mov ecx, dword [ebp - 0x24]
push dword [ebp - 0x10]
not ecx
and ecx, 4
mov dword [0x43c244], eax
sub eax, ecx
mov ecx, dword [ebp - 0xc]
push esi
push ebx
lea eax, [eax + ecx - 0x1c]
push 0xffffffffffffffff
mov dword [0x43c238], eax
call fcn.00403263
cmp eax, dword [ebp - 0x10]
je 0x40321d
mov eax, 0x40a098
jmp 0x40325c
test byte [ebp - 0x24], 1
mov dword [0x47af34], esi
mov eax, dword [esi]
mov dword [0x47af3c], eax
je 0x403236
inc dword [0x47af40]
lea eax, [esi + 0x44]
mov ecx, edi
sub eax, edi
add dword [eax], esi
dec ecx
jne 0x40323b
mov eax, dword [0x43c234]
push 0x40
mov dword [esi + 0x3c], eax
add esi, 4
push esi
push 0x47af60
call fcn.00405f30
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4