Function at 0x4030fb
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
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, 0x480000
push 0x2000
add eax, 0x3e8
push esi
push ebx
mov dword [0x4492ec], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 3
push 0x80000000
push esi
call fcn.00405d7a
mov edi, eax
cmp edi, 0xffffffff
mov dword [0x40a648], edi
jne 0x403155
mov eax, 0x40a7a0
jmp 0x40339a
push esi
mov esi, 0x478000
push esi
call fcn.004060a5
push esi
call fcn.00405bd5
push eax
push 0x482000
call fcn.004060a5
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [0x429480], eax
mov esi, eax
jle 0x403270
mov ebx, 0x421480
mov eax, dword [0x4492f4]
mov edi, esi
neg eax
sbb eax, eax
and eax, 0x7e00
add eax, 0x200
cmp esi, eax
jl 0x4031a9
mov edi, eax
push edi
push ebx
call fcn.0040364b
test eax, eax
je 0x40330b
cmp dword [0x4492f4], 0
jne 0x40323b
push 0x1c
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.00405d35
mov eax, dword [ebp - 0x24]
test eax, 0xfffffff0
jne 0x403249
cmp dword [ebp - 0x20], 0xdeadbeef
jne 0x403249
cmp dword [ebp - 0x14], 0x74736e49
jne 0x403249
cmp dword [ebp - 0x18], 0x74666f73
jne 0x403249
cmp dword [ebp - 0x1c], 0x6c6c754e
jne 0x403249
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x421470]
and eax, 2
or dword [0x449380], eax
mov eax, dword [ebp - 0xc]
cmp eax, esi
mov dword [0x4492f4], ecx
jg 0x40334f
test byte [ebp + 8], 8
jne 0x40322d
test byte [ebp + 8], 4
jne 0x40326e
inc dword [ebp - 8]
lea esi, [eax - 4]
cmp edi, esi
jbe 0x403249
mov edi, esi
jmp 0x403249
test byte [ebp + 8], 2
jne 0x403249
push 0
call fcn.00403065
pop ecx
cmp esi, dword [0x429480]
jge 0x40325e
push edi
push ebx
push dword [ebp - 4]
call fcn.00406610
mov dword [ebp - 4], eax
add dword [0x421470], edi
sub esi, edi
test esi, esi
jg 0x40318e
xor ebx, ebx
push 1
call fcn.00403065
cmp dword [0x4492f4], ebx
pop ecx
je 0x40334f
cmp dword [ebp - 8], ebx
je 0x4032b3
push dword [0x421470]
call fcn.0040367d
lea eax, [ebp + 8]
push 4
push eax
call fcn.0040364b
test eax, eax
je 0x40334f
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jne 0x40334f
push dword [ebp - 0x10]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, 0x4153e8
mov esi, eax
call fcn.00406686
lea eax, [ebp - 0x128]
push 0x47c000
push eax
call fcn.00405da9
push ebx
push 0x4000100
push 2
push ebx
push ebx
lea eax, [ebp - 0x128]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x40a64c], eax
jne 0x403315
mov eax, 0x40a75c
jmp 0x40339a
push 1
call fcn.00403065
pop ecx
jmp 0x40334f
mov eax, dword [0x4492f4]
add eax, 0x1c
push eax
call fcn.0040367d
mov ecx, dword [ebp - 0x24]
push dword [ebp - 0x10]
not ecx
and ecx, 4
mov dword [0x429484], eax
sub eax, ecx
mov ecx, dword [ebp - 0xc]
push esi
push ebx
lea eax, [eax + ecx - 0x1c]
push 0xffffffffffffffff
mov dword [0x421478], eax
call fcn.004033a1
cmp eax, dword [ebp - 0x10]
je 0x403356
mov eax, 0x40a690
jmp 0x40339a
test byte [ebp - 0x24], 1
mov dword [0x4492f0], esi
mov eax, dword [esi]
mov dword [0x4492f8], eax
je 0x40336f
inc dword [0x4492fc]
lea ecx, [esi + 0x3c]
push 8
mov eax, ecx
pop edx
add dword [eax], esi
dec edx
sub eax, 8
cmp edx, ebx
ja 0x403377
mov eax, dword [0x421474]
add esi, 4
push 0x40
push esi
push 0x449300
mov dword [ecx], eax
call fcn.00405d35
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4