Function at 0x407330
Capabilities:
Get file size
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x413266
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x484
mov eax, dword [0x4ea33c]
push ebx
push esi
mov dword [esp + 0x488], eax
mov eax, dword [0x4eae74]
mov ebx, ecx
push edi
mov ecx, 0x4eae74
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x10], edi
push 0x3ff
lea ecx, [esp + 0x38]
push ecx
push 0
mov dword [esp + 0x4a4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x4073e6
call fcn.00405b30
mov esi, eax
test esi, esi
jge 0x4073e9
lea eax, [edi - 0x10]
mov dword [esp + 0x498], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4073df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, esi
jmp 0x40772b
mov dword [ebx + 0x34], eax
mov ecx, dword [ebx + 0x34]
push ebp
lea eax, [esp + 0x1c]
lea ebp, [ebx + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x407412
call fcn.00405b30
test eax, eax
jl 0x407416
mov eax, dword [esp + 0x18]
mov edi, eax
jmp 0x40741a
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
mov dword [esp + 0x20], 1
ja 0x407436
cmp edi, 0x23b
jbe 0x4076fd
push 0
lea edx, [esp + 0x20]
mov eax, edi
sub eax, 0x217
push edx
push eax
mov dword [esp + 0x24], eax
mov eax, dword [ebp]
sbb ecx, 0
push eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x407464
call fcn.00405b30
push 0x217
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebp
call fcn.00405d70
cmp dword [esp + 0x38], 0x6f636f51
jne 0x4076fd
cmp dword [esp + 0x3c], 0x126e695a
jne 0x4076fd
mov eax, dword [0x4eadb0]
lea edx, [esp + 0x46]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea ecx, [esp + 0x86]
push ecx
lea ecx, [esp + 0x18]
call fcn.00403ee0
lea edx, [esp + 0xc6]
push edx
lea ecx, [esp + 0x18]
call fcn.00406d90
mov eax, dword [esp + 0x4a4]
test eax, eax
jne 0x4074d9
push 0x80070057
call fcn.004014c0
mov eax, dword [0x4eae74]
push 1
push 0xe
mov ecx, 0x4eae74
call dword [eax]
test eax, eax
jne 0x4074f2
call fcn.00402040
mov ecx, dword [eax + 8]
lea esi, [eax + 0x10]
mov eax, 0xe
cmp ecx, eax
mov dword [esp + 0x18], esi
jge 0x40750f
push 0x80070057
call fcn.004014c0
mov dword [esi - 0xc], eax
mov eax, dword [esp + 0x4a4]
mov byte [esi + 0xe], 0
mov edx, dword [eax]
mov ecx, esi
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov ax, word [eax + 0xc]
mov word [ecx + 0xc], ax
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4a4], 1
call fcn.004068b0
add esi, 0xfffffff0
mov byte [esp + 0x49c], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40756f
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
push 1
lea edx, [ebx + 0x3c]
push edx
push eax
push ecx
lea ecx, [esp + 0x448]
call fcn.00405f60
movsx ecx, byte [esp + 0x40]
mov eax, dword [esp + 0x41]
mov edx, dword [esp + 0x45]
call fcn.0040bfd0
push 0
sub edi, eax
push 0
sub edi, 0x217
push edi
mov ecx, ebp
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], edx
mov esi, eax
call fcn.00405dc0
push 0x24
lea eax, [esp + 0x3c]
push eax
mov ecx, ebp
call fcn.00405d70
movzx eax, byte [esp + 0x4f]
dec eax
xor ecx, ecx
sub byte [esp + ecx + 0x38], al
inc ecx
cmp ecx, 0x17
jl 0x4075d0
push 0x17
lea ecx, [esp + 0x3c]
push str.MagaZine_Media_v2.0
push ecx
call fcn.0040bf90
add esp, 0xc
test eax, eax
jne 0x4076fd
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4076fd
cmp esi, eax
jbe 0x4076fd
mov dl, byte [esp + 0x4f]
mov cx, word [esp + 0x5a]
mov dword [esp + 0x18], eax
mov ax, word [esp + 0x58]
push 0
mov byte [esp + 0x17], dl
mov word [ebx + 0x4c], ax
mov word [ebx + 0x4e], cx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push 8
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xa
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push esi
push 0
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
movzx edx, word [ebx + 0x4c]
cmp edx, dword [esp + 0x20]
jg 0x407669
movzx eax, word [ebx + 0x4e]
cmp eax, dword [esp + 0x24]
jle 0x407689
push 4
push 0x4e4710
push 0x4e46d8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
jne 0x407689
push 0
call fcn.0040b8be
mov ecx, dword [esp + 0x54]
push 0
add ecx, edi
push 0
push ecx
mov ecx, ebp
call fcn.00405dc0
push 0x103
lea edx, [esp + 0x3c]
push edx
mov ecx, ebp
call fcn.00405d70
movzx esi, byte [esp + 0x13]
mov edx, esi
lea eax, [esp + 0x38]
call fcn.004051b0
push eax
lea ecx, [ebx + 0x38]
call fcn.00403ee0
mov ecx, dword [esp + 0x18]
push 0
add ecx, edi
push 0
push ecx
mov ecx, ebp
call fcn.00405dc0
push 0x10
lea edx, [esp + 0x2c]
push edx
mov ecx, ebp
call fcn.00405d70
mov eax, dword [esp + 0x2c]
push esi
push edi
push eax
push 0
mov ecx, ebx
call fcn.00407170
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x49c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407726
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
pop ebp
mov ecx, dword [esp + 0x490]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x484]
pop ebx
call fcn.0040b1f3
add esp, 0x490
ret 4