Function at 0x40a998
Capabilities:
Get file size
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
mov eax, 0x1068
call fcn.00441290
mov esi, esp
mov dword [esi], 0x78a13529
mov ebx, dword [esi + 0x34]
mov eax, dword [esi + 0x24]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x2c]
mov dword [esi + 8], eax
mov edi, dword [esi + 0x30]
mov eax, dword [esi]
cmp eax, 0xedfbd3ce
jle 0x40aa39
cmp eax, 0x4034fc6b
jg 0x40aa86
cmp eax, 0x22eb69f5
jle 0x40ab3c
cmp eax, 0x327a55ac
jg 0x40ac62
cmp eax, 0x22eb69f6
je 0x40ae4b
cmp eax, 0x28c86b29
je 0x40ae87
cmp eax, 0x2c387bd3
jne 0x40a9cb
add ebx, 0xffffff84
call fcn.0040b1fd
call fcn.0040b1fd
mov eax, 0x78a13529
cmp ebx, 0x1f2000
jae 0x40aa31
mov eax, 0x69962771
shr ebx, 0xd
jmp 0x40b14c
cmp eax, 0xb2a1aad1
jg 0x40aaeb
cmp eax, 0x99781919
jle 0x40ab70
cmp eax, 0xaa3358af
jg 0x40acae
cmp eax, 0x9978191a
je 0x40aea8
cmp eax, 0xa3f991de
je 0x40aeb3
cmp eax, 0xa5ae260f
jne 0x40a9cb
mov dword [esi], 0x1e35e006
jmp 0x40a9cb
cmp eax, 0x63c138bf
jle 0x40abb8
cmp eax, 0x6a667c0e
jg 0x40acda
cmp eax, 0x63c138c0
je 0x40aecc
cmp eax, 0x6753933f
je 0x40aee4
cmp eax, 0x69962771
jne 0x40a9cb
shr ebx, 8
and ebx, 0x1fffff
lea eax, [ebx + ebx*4]
lea eax, [eax + eax*4]
lea edx, [eax + ebx]
mov ecx, 0x28c86b29
cmp edx, 0x97
jae 0x40aae1
mov ecx, 0x78a13529
add ebx, eax
add ebx, 0x3b
jmp 0x40af39
cmp eax, 0xc37141f2
jle 0x40ac00
cmp eax, 0xd462280f
jg 0x40ad0c
cmp eax, 0xc37141f3
je 0x40af03
cmp eax, 0xc9db41b4
je 0x40af40
cmp eax, 0xd2d87be9
jne 0x40a9cb
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xd4622810
xor eax, eax
inc eax
mov dword [esi + 8], eax
jmp 0x40a9cb
cmp eax, 0x1cb59433
jg 0x40ad3f
cmp eax, 0x12ec38b1
jle 0x40ae1a
cmp eax, 0x12ec38b2
je 0x40af6d
cmp eax, 0x13203bff
jne 0x40a9cb
add ebx, 0x23
jmp 0x40ae98
cmp eax, 0x8b71f59b
jle 0x40ad60
cmp eax, 0x8b71f59c
je 0x40af8c
cmp eax, 0x96f251ba
je 0x40afa9
cmp eax, 0x970e455e
jne 0x40a9cb
shl ebx, 5
add ebx, 0x4f80
and ebx, 0xffffff80
add ebx, 0xfffffff9
shr ebx, 0xc
call fcn.0040a998
jmp 0x40ae0f
cmp eax, 0x43f3a4c7
jle 0x40ad91
cmp eax, 0x43f3a4c8
je 0x40afd5
cmp eax, 0x4d070cd3
je 0x40aff9
cmp eax, 0x626988b8
jne 0x40a9cb
cmp dword [0x4711e8], 1
mov eax, 0x63c138c0
je 0x40b14c
mov eax, 0xa5ae260f
jmp 0x40b14c
cmp eax, 0xbbaf56ef
jle 0x40adbb
cmp eax, 0xbbaf56f0
je 0x40b02f
cmp eax, 0xc12d797a
je 0x40b03d
cmp eax, 0xc275a18f
jne 0x40a9cb
mov eax, dword [esi + 4]
shr eax, 0xf
add eax, 0x73
shr eax, 6
imul ecx, eax, 0x8b
imul eax, eax
imul edx, eax, 0x6fb1
dec edx
mov dword [esi + 4], ecx
mov ecx, 0xb8b656b8
cmp eax, edx
je 0x40af39
mov ecx, 0x1249dc0b
jmp 0x40af39
cmp eax, 0x327a55ad
je 0x40b076
cmp eax, 0x3de22966
je 0x40b091
cmp eax, 0x3e41e8cd
jne 0x40a9cb
mov eax, dword [0x4711ec]
mov ecx, dword [esi + 0x20]
add eax, ecx
add eax, 8
push 0x14
push 0x4711f0
push eax
call fcn.004422cd
add esp, 0xc
mov dword [esi + 0x40], eax
mov dword [esi], 0xc37141f3
jmp 0x40a9cb
cmp eax, 0xaa3358b0
je 0x40b0ab
cmp eax, 0xaeaab18d
je 0x40b0c3
cmp eax, 0xb1bedde3
jne 0x40a9cb
mov dword [esi], 0xaa3358b0
jmp 0x40a9cb
cmp eax, 0x6a667c0f
je 0x40b0df
cmp eax, 0x75fa082a
je 0x40b10c
cmp eax, 0x78a13529
jne 0x40a9cb
push eax
mov eax, esp
mov dword [esi + 0x18], eax
mov dword [esi], 0xaeaab18d
jmp 0x40a9cb
cmp eax, 0xd4622810
je 0x40b11d
cmp eax, 0xe4f922e9
je 0x40b12e
cmp eax, 0xecb12a5f
jne 0x40a9cb
call fcn.0040b1fd
mov dword [esi], 0xbbaf56f0
xor edi, edi
jmp 0x40a9cb
cmp eax, 0x1e35e006
je 0x40ae0f
cmp eax, 0x1f5e02cd
jne 0x40b1a5
mov dword [esi], 0x12ec38b2
jmp 0x40a9cb
cmp eax, 0x81fa49ba
je 0x40b153
cmp eax, 0x87a2011e
jne 0x40a9cb
imul eax, dword [esi + 4], 0x58000000
mov dword [esi + 4], eax
mov dword [esi], 0x75fa082a
xor eax, eax
inc eax
mov dword [esi + 0xc], eax
jmp 0x40a9cb
cmp eax, 0x4034fc6c
je 0x40b16d
cmp eax, 0x4131dcee
jne 0x40a9cb
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0x3e41e8cd
jmp 0x40a9cb
cmp eax, 0xb2a1aad2
je 0x40b189
cmp eax, 0xb8b656b8
jne 0x40a9cb
mov dword [esi + 0x38], edi
lea edi, [esi + 0x50]
push edi
push 0x1c
push 0x4711e8
call fcn.0040c060
add esp, 0xc
push 0x14
push 0x471204
push edi
call fcn.004422cd
add esp, 0xc
mov ecx, 0x3de22966
test eax, eax
je 0x40ae05
mov ecx, 0xc275a18f
mov dword [esi], ecx
mov edi, dword [esi + 0x38]
jmp 0x40a9cb
mov dword [esi], 0xb2a1aad2
jmp 0x40a9cb
cmp eax, 0xedfbd3cf
jne 0x40b1b2
mov eax, dword [esi + 4]
shl eax, 0xb
add eax, 0x3fff389a
shr eax, 5
and eax, 0x1ffffc4
add eax, 0x85
mov dword [esi + 4], eax
mov dword [esi], 0x4d070cd3
jmp 0x40a9cb
mov ecx, dword [esi + 4]
shr ecx, 8
imul eax, ecx, 0xcd
imul eax, eax
imul edx, eax, 0x27b5
dec edx
imul ecx, ecx, 0xcd00
add ecx, 0xffff4a00
mov dword [esi + 4], ecx
mov ecx, 0x78a13529
cmp edx, eax
je 0x40af39
mov ecx, 0x4034fc6c
jmp 0x40af39
shr ebx, 0xf
imul ebx, ebx, 0x7b0
shr ebx, 0xa
call fcn.0040b1fd
call fcn.0040b1fd
mov dword [esi], 0x78a13529
jmp 0x40a9cb
mov dword [esi], 0x626988b8
jmp 0x40a9cb
shl ebx, 0x1a
add ebx, 0x98e40000
call fcn.0040a998
mov dword [esi], 0x78a13529
jmp 0x40a9cb
mov dword [esi + 4], 0
mov dword [esi], 0x1cb59434
xor eax, eax
inc eax
mov dword [esi + 0x14], eax
jmp 0x40a9cb
mov eax, dword [esi + 4]
movzx eax, ax
shl eax, 0xe
or eax, 0xd4
imul eax, eax, 0x76
mov dword [esi + 4], eax
mov dword [esi], 0x8b71f59c
jmp 0x40a9cb
mov eax, dword [esi + 4]
add eax, 0x10
imul ecx, eax, 0xbd
imul eax, eax
imul edx, eax, 0x609d
add ecx, 0xffffff60
dec edx
shr ecx, 0xa
add ecx, 0xffffff78
mov dword [esi + 4], ecx
mov ecx, 0x626988b8
cmp eax, edx
je 0x40af39
mov ecx, 0x81fa49ba
mov dword [esi], ecx
jmp 0x40a9cb
lea eax, [ebx + ebx*4]
lea eax, [eax + eax*4]
add eax, ebx
shr eax, 0xc
add eax, 0x17
shr eax, 1
mov ebx, eax
mov eax, 0xe4f922e9
and ebx, 0xfffe0
je 0x40b14c
mov eax, 0x626988b8
jmp 0x40b14c
push dword [esi + 0x20]
call fcn.0044f149
add esp, 4
mov eax, dword [esi + 0x18]
mov dword [esi], 0xd4622810
mov eax, dword [esi + 0x44]
mov dword [esi + 8], eax
jmp 0x40a9cb
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x3c]
mov eax, 0xd2d87be9
cmp edx, ecx
ja 0x40b14c
mov eax, 0xedfbd3cf
jmp 0x40b14c
mov eax, dword [esi + 4]
shr eax, 0xe
mov dword [esi + 4], eax
mov ecx, eax
imul ecx, eax
imul edx, ecx, 0x5c5d
dec edx
mov eax, 0x3e41e8cd
cmp edx, ecx
je 0x40b14c
mov eax, 0xecb12a5f
jmp 0x40b14c
shr ebx, 7
imul ebx, ebx, 0x3e00
mov eax, 0x626988b8
cmp ebx, 0xf0
jge 0x40b14c
mov eax, 0x78a13529
jmp 0x40b14c
push dword [esi + 0x1c]
call fcn.0044f4f4
add esp, 4
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x18]
mov eax, dword [esi + 0x18]
xor ecx, ecx
mov dword [eax], ecx
push ecx
push dword [esi + 0x18]
push dword [esi + 0x1c]
push dword [esi + 0x20]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esi], 0x4131dcee
jmp 0x40a9cb
mov dword [esi + 0x44], edi
mov dword [esi], 0x1f5e02cd
jmp 0x40a9cb
imul ebx, ebx, 0xfb00
add ebx, 0xff05fb00
shr ebx, 6
add ebx, 0xffffff01
call fcn.0040a998
call fcn.0040a998
mov eax, 0x6a667c0f
cmp ebx, 0x2c000
jae 0x40b06e
mov eax, 0xb8b656b8
shr ebx, 0xb
jmp 0x40b14c
mov ecx, dword [esi + 0x10]
mov eax, 0x87a2011e
cmp ecx, 0xffffffff
je 0x40b14c
mov eax, 0xb1bedde3
jmp 0x40b14c
mov eax, dword [esi + 4]
shl eax, 0x16
lea eax, [eax + eax*8]
or eax, 0x6b
mov dword [esi + 4], eax
mov dword [esi], 0x9978191a
jmp 0x40a9cb
lea eax, [esi + 0x48]
push eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov dword [esi], 0x22eb69f6
jmp 0x40a9cb
mov eax, dword [esi + 4]
lea eax, [eax + eax*4]
shl eax, 0xf
add eax, 0x74000
mov dword [esi + 4], eax
mov dword [esi], 0xb8b656b8
jmp 0x40a9cb
xor eax, eax
push eax
push 0x80
mov ecx, 3
push ecx
push eax
push ecx
push 0x80000000
lea eax, [esi + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x10], eax
mov dword [esi], 0x327a55ad
jmp 0x40a9cb
mov dword [esi], 0x1cb59434
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
jmp 0x40a9cb
mov dword [esi], 0x75fa082a
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
jmp 0x40a9cb
imul ebx, ebx, 0x3cc
add ebx, 0x6684
and ebx, 0xfffffff0
mov eax, 0xc12d797a
cmp ebx, 0x1e
jae 0x40b14c
mov eax, 0x970e455e
mov dword [esi], eax
jmp 0x40a9cb
cmp dword [esi + 0x40], 0
mov eax, 0x96f251ba
je 0x40b163
mov eax, 0xbbaf56f0
mov dword [esi], eax
xor edi, edi
inc edi
jmp 0x40a9cb
mov eax, dword [esi + 0x48]
mov dword [esi + 0x1c], eax
mov eax, dword [0x4711ec]
add eax, 0x30
mov dword [esi + 0x3c], eax
mov dword [esi], 0x6753933f
jmp 0x40a9cb
push 0x800
lea eax, [esi + 0x64]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [esi], 0x6a667c0f
jmp 0x40a9cb
cmp eax, 0x1cb59434
jne 0x40a9cb
jmp 0x40b1dd
cmp eax, 0x1249dc0b
jne 0x40a9cb
mov dword [esi + 0x34], ebx
mov eax, dword [esi + 0x14]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x28], eax
mov eax, dword [esi + 8]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], edi
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [esi + 0x34], ebx
mov eax, dword [esi + 0xc]
mov dword [esi + 0x28], eax
mov eax, dword [esi + 8]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], edi
mov eax, dword [esi + 0x14]
mov dword [esi + 0x24], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret