Function at 0x40304e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x400
mov esi, 0x7a9c00
push esi
add eax, 0x3e8
push ebx
mov dword [0x7a2460], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 3
push 0x80000000
push esi
call fcn.00405762
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0xc], edi
mov dword [0x409010], edi
jne 0x4030a8
mov eax, str.Error_launching_installer
jmp 0x4032cf
push esi
mov esi, 0x7a8c00
push esi
call fcn.004058f2
push esi
call fcn.00405a6c
push eax
push 0x7aa000
call fcn.004058f2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor esi, esi
cmp esi, ebx
mov dword [0x79d5b4], eax
mov edi, eax
jl 0x403210
jg 0x4030e8
cmp edi, ebx
jbe 0x403210
mov ecx, dword [0x7a246c]
neg ecx
sbb ecx, ecx
and ecx, reloc.KERNEL32.dll_lstrcatA
add ecx, 0x200
mov eax, ecx
cdq
cmp esi, edx
jg 0x40310f
jl 0x40310b
cmp edi, eax
jae 0x40310f
mov ebx, edi
jmp 0x403111
mov ebx, ecx
push ebx
push 0x416cf0
call fcn.00402df0
test eax, eax
je 0x4032d6
cmp dword [0x7a246c], 0
jne 0x4031c1
push 0x1c
push 0x416cf0
lea eax, [ebp - 0x28]
push eax
call fcn.0040571e
mov eax, dword [ebp - 0x28]
test eax, 0xfffffff0
jne 0x4031cf
cmp dword [ebp - 0x24], 0xdeadbeef
jne 0x4031cf
cmp dword [ebp - 0x18], 0x74736e49
jne 0x4031cf
cmp dword [ebp - 0x1c], 0x74666f73
jne 0x4031cf
cmp dword [ebp - 0x20], 0x6c6c754e
jne 0x4031cf
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x416cec]
and eax, 2
or dword [0x7a24e0], eax
xor eax, eax
cmp eax, esi
mov dword [0x7a246c], ecx
mov ecx, dword [ebp - 0x10]
jg 0x4032de
jl 0x4031a5
cmp ecx, edi
ja 0x4032de
test byte [ebp + 8], 8
jne 0x4031b1
test byte [ebp + 8], 4
jne 0x40320e
inc dword [ebp - 4]
lea edi, [ecx - 4]
xor esi, esi
cmp ebx, edi
jbe 0x4031cf
mov ebx, edi
jmp 0x4031cf
test byte [ebp + 8], 2
jne 0x4031cf
push 0
call fcn.00402d8c
pop ecx
mov eax, dword [0x79d5b4]
xor ecx, ecx
cmp esi, ecx
jg 0x4031f1
jl 0x4031e0
cmp edi, eax
jae 0x4031f1
push ebx
push 0x416cf0
push dword [ebp - 8]
call fcn.00406126
mov dword [ebp - 8], eax
add dword [0x416cec], ebx
sub edi, ebx
sbb esi, 0
test esi, esi
jg 0x4030e8
jl 0x40320e
test edi, edi
ja 0x4030e8
xor ebx, ebx
push 1
call fcn.00402d8c
cmp dword [0x7a246c], ebx
pop ecx
je 0x4032de
cmp dword [ebp - 4], ebx
je 0x403253
push dword [0x416cec]
call fcn.00402e22
push 4
lea eax, [ebp + 8]
push eax
call fcn.00402df0
test eax, eax
je 0x4032de
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x4032de
push dword [ebp - 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov eax, dword [0x7a246c]
add eax, 0x1c
push eax
call fcn.00402e22
push dword [ebp - 0x14]
push esi
push ebx
push 0xffffffffffffffff
call fcn.00402e39
cmp eax, dword [ebp - 0x14]
jne 0x4032de
test byte [ebp - 0x28], 1
mov dword [0x7a2410], esi
mov eax, dword [esi]
mov dword [0x7a2468], eax
je 0x403298
inc dword [0x7a2464]
push 8
pop eax
xor ecx, ecx
add eax, 0xffffffff
adc ecx, 0xffffffff
add dword [esi + eax*8 + 4], esi
mov edx, eax
or edx, ecx
jne 0x40329d
push 1
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x3c], eax
push 0x40
add esi, 4
push esi
push 0x7a2420
call fcn.0040571e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
push 1
call fcn.00402d8c
pop ecx
mov eax, 0x407364
jmp 0x4032cf