Function at 0x40306a
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, 0x436c00
push esi
add eax, 0x3e8
push ebx
mov dword [0x42f940], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 3
push 0x80000000
push esi
call fcn.0040577e
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0xc], edi
mov dword [0x40a010], edi
jne 0x4030c4
mov eax, str.Error_launching_installer
jmp 0x4032eb
push esi
mov esi, 0x435c00
push esi
call fcn.0040590e
push esi
call fcn.00405a88
push eax
push 0x437000
call fcn.0040590e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor esi, esi
cmp esi, ebx
mov dword [0x4298f0], eax
mov edi, eax
jl 0x40322c
jg 0x403104
cmp edi, ebx
jbe 0x40322c
mov ecx, dword [0x42f94c]
neg ecx
sbb ecx, ecx
and ecx, 0x7e00
add ecx, 0x200
mov eax, ecx
cdq
cmp esi, edx
jg 0x40312b
jl 0x403127
cmp edi, eax
jae 0x40312b
mov ebx, edi
jmp 0x40312d
mov ebx, ecx
push ebx
push 0x417d30
call fcn.00402df0
test eax, eax
je 0x4032f2
cmp dword [0x42f94c], 0
jne 0x4031dd
push 0x1c
push 0x417d30
lea eax, [ebp - 0x28]
push eax
call fcn.0040573a
mov eax, dword [ebp - 0x28]
test eax, 0xfffffff0
jne 0x4031eb
cmp dword [ebp - 0x24], 0xdeadbeef
jne 0x4031eb
cmp dword [ebp - 0x18], 0x74736e49
jne 0x4031eb
cmp dword [ebp - 0x1c], 0x74666f73
jne 0x4031eb
cmp dword [ebp - 0x20], 0x6c6c754e
jne 0x4031eb
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x417d2c]
and eax, 2
or dword [0x42f9c0], eax
xor eax, eax
cmp eax, esi
mov dword [0x42f94c], ecx
mov ecx, dword [ebp - 0x10]
jg 0x4032fa
jl 0x4031c1
cmp ecx, edi
ja 0x4032fa
test byte [ebp + 8], 8
jne 0x4031cd
test byte [ebp + 8], 4
jne 0x40322a
inc dword [ebp - 4]
lea edi, [ecx - 4]
xor esi, esi
cmp ebx, edi
jbe 0x4031eb
mov ebx, edi
jmp 0x4031eb
test byte [ebp + 8], 2
jne 0x4031eb
push 0
call fcn.00402d8c
pop ecx
mov eax, dword [0x4298f0]
xor ecx, ecx
cmp esi, ecx
jg 0x40320d
jl 0x4031fc
cmp edi, eax
jae 0x40320d
push ebx
push 0x417d30
push dword [ebp - 8]
call fcn.00406142
mov dword [ebp - 8], eax
add dword [0x417d2c], ebx
sub edi, ebx
sbb esi, 0
test esi, esi
jg 0x403104
jl 0x40322a
test edi, edi
ja 0x403104
xor ebx, ebx
push 1
call fcn.00402d8c
cmp dword [0x42f94c], ebx
pop ecx
je 0x4032fa
cmp dword [ebp - 4], ebx
je 0x40326f
push dword [0x417d2c]
call fcn.00402e22
push 4
lea eax, [ebp + 8]
push eax
call fcn.00402df0
test eax, eax
je 0x4032fa
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x4032fa
push dword [ebp - 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov eax, dword [0x42f94c]
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 0x4032fa
test byte [ebp - 0x28], 1
mov dword [0x42f8f0], esi
mov eax, dword [esi]
mov dword [0x42f948], eax
je 0x4032b4
inc dword [0x42f944]
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 0x4032b9
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 0x42f900
call fcn.0040573a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
push 1
call fcn.00402d8c
pop ecx
mov eax, 0x408364
jmp 0x4032eb