Function at 0x409e88
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, 0x1070
call fcn.0043f6a0
mov esi, esp
mov dword [esi], 0x78a13529
mov ebx, dword [esi + 0x3c]
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x30]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x34]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x38]
mov dword [esi + 8], eax
mov eax, dword [esi]
cmp eax, 0x1cb59433
jg 0x409f27
cmp eax, 0xb2a1aad1
jle 0x409f83
cmp eax, 0xd462280f
jg 0x40a05c
cmp eax, 0xc275a18e
jle 0x40a149
cmp eax, 0xc275a18f
je 0x40a467
cmp eax, 0xc37141f3
je 0x40a2fe
cmp eax, 0xd2d87be9
jne 0x409ebe
push dword [esi + 0x24]
call fcn.0044deb4
add esp, 4
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x20]
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov dword [esi], 0x4d070cd3
jmp 0x409ebe
cmp eax, 0x4131dced
jg 0x409fdb
cmp eax, 0x2c387bd2
jle 0x40a08d
cmp eax, 0x3de22965
jle 0x40a174
cmp eax, 0x3de22966
je 0x40a30f
cmp eax, 0x3e41e8cd
je 0x40a31a
cmp eax, 0x4034fc6c
jne 0x409ebe
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0x1f5e02cd
xor edi, edi
inc edi
mov dword [esi + 0x10], edi
jmp 0x409ebe
cmp eax, 0x99781919
jle 0x40a0bc
cmp eax, 0xaa3358af
jle 0x40a1bb
cmp eax, 0xaa3358b0
je 0x40a331
cmp eax, 0xaeaab18d
je 0x40a35e
cmp eax, 0xb1bedde3
jne 0x409ebe
mov ecx, dword [0x470200]
add ecx, 0x30
mov eax, 0x22eb69f6
cmp ecx, dword [esi + 0x24]
ja 0x40a4db
mov eax, 0x6753933f
jmp 0x40a4db
cmp eax, 0x6753933e
jle 0x40a109
cmp eax, 0x6a667c0e
jle 0x40a1f0
cmp eax, 0x6a667c0f
je 0x40a37a
cmp eax, 0x75fa082a
je 0x40a38e
cmp eax, 0x78a13529
jne 0x409ebe
push eax
push eax
mov eax, esp
and eax, 0xfffffff8
mov esp, eax
mov dword [esi + 0x1c], eax
push eax
mov eax, esp
mov dword [esi + 0x20], eax
lea edi, [esi + 0x54]
push edi
push 0x1c
push 0x4701fc
call fcn.0040b558
add esp, 0xc
push 0x14
push 0x470218
push edi
call fcn.004406dd
add esp, 0xc
mov ecx, 0xaeaab18d
test eax, eax
je 0x40a055
mov ecx, 0xb8b656b8
mov dword [esi], ecx
jmp 0x409ebe
cmp eax, 0x1249dc0a
jg 0x40a223
cmp eax, 0xecb12a5f
je 0x40a3ae
cmp eax, 0xedfbd3cf
je 0x40a533
cmp eax, 0xd4622810
jne 0x409ebe
jmp 0x40a571
cmp eax, 0x1f5e02cc
jg 0x40a24a
cmp eax, 0x1cb59434
je 0x40a3c4
cmp eax, 0x1e35e006
jne 0x409ebe
mov eax, dword [esi + 0x1c]
mov dword [esi], 0xb2a1aad2
jmp 0x409ebe
cmp eax, 0x8b71f59b
jg 0x40a292
cmp eax, 0x81fa49ba
je 0x40a3e0
cmp eax, 0x87a2011e
jne 0x409ebe
imul ebx, ebx, 0x130c
add ebx, 0xffffff37
call fcn.0040a5b7
mov eax, 0x1cb59434
cmp ebx, 0xc2
jb 0x40a4db
mov eax, 0x78a13529
jmp 0x40a4db
cmp eax, 0x626988b7
jg 0x40a2bc
cmp eax, 0x4131dcee
je 0x40a417
cmp eax, 0x4d070cd3
jne 0x409ebe
push 0
push dword [esi + 0x20]
push dword [esi + 0x24]
push dword [esi + 0x28]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esi], 0x4131dcee
jmp 0x409ebe
cmp eax, 0xb2a1aad2
je 0x40a435
cmp eax, 0xbbaf56f0
jne 0x40a526
imul eax, dword [esi + 4], 0x1a0910
mov dword [esi + 4], eax
mov dword [esi], 0x96f251ba
jmp 0x409ebe
cmp eax, 0x2c387bd3
je 0x40a45a
cmp eax, 0x327a55ad
jne 0x409ebe
mov eax, dword [esi + 4]
shr eax, 7
mov ecx, eax
imul ecx, eax
imul edx, ecx, 0x4adb
dec edx
add eax, 0xffffff69
mov dword [esi + 4], eax
mov eax, 0xb2a1aad2
cmp ecx, edx
je 0x40a4db
mov eax, 0x6a667c0f
jmp 0x40a4db
cmp eax, 0x9978191a
je 0x40a472
cmp eax, 0xa5ae260f
jne 0x409ebe
mov ecx, dword [esi + 0x14]
mov eax, 0x12ec38b2
cmp ecx, 0xffffffff
je 0x40a1e3
mov eax, 0x1e35e006
mov dword [esi], eax
xor eax, eax
inc eax
mov dword [esi + 0xc], eax
jmp 0x409ebe
cmp eax, 0x6753933f
je 0x40a4b2
cmp eax, 0x69962771
jne 0x409ebe
and ebx, 0x7ffff
imul ebx, ebx, 0xd5
add ebx, 0xffffeac2
mov dword [esi], 0x6a667c0f
jmp 0x409ebe
cmp eax, 0x1249dc0b
je 0x40a4e2
cmp eax, 0x12ec38b2
jne 0x409ebe
mov dword [esi], 0xd4622810
mov eax, dword [esi + 0xc]
mov dword [esi + 0x18], eax
jmp 0x409ebe
cmp eax, 0x1f5e02cd
je 0x40a4ed
cmp eax, 0x22eb69f6
jne 0x409ebe
mov eax, dword [esi + 4]
lea ecx, [eax + 0xc2]
imul ecx, ecx
imul edx, ecx, 0x1e05
add eax, 0xffffff75
dec edx
mov dword [esi + 4], eax
mov eax, 0x78a13529
cmp ecx, edx
je 0x40a4db
mov eax, 0x4034fc6c
jmp 0x40a4db
cmp eax, 0x8b71f59c
je 0x40a501
cmp eax, 0x96f251ba
jne 0x409ebe
mov eax, dword [esi + 0x20]
mov dword [esi], 0x1f5e02cd
mov eax, dword [esi + 0x50]
mov dword [esi + 0x10], eax
jmp 0x409ebe
cmp eax, 0x626988b8
je 0x40a50c
cmp eax, 0x63c138c0
jne 0x409ebe
imul ebx, ebx, 0x30318
add ebx, 0xfe1b0de8
call fcn.0040a5b7
mov eax, 0x78a13529
cmp ebx, 0x88
jae 0x40a4db
mov eax, 0xaeaab18d
jmp 0x40a4db
mov eax, dword [esi + 8]
mov dword [esi + 0x50], eax
mov dword [esi], 0xecb12a5f
jmp 0x409ebe
mov dword [esi], 0xa5ae260f
jmp 0x409ebe
call fcn.0040a5b7
mov dword [esi], 0xc37141f3
mov dword [esi + 8], 0
jmp 0x409ebe
imul eax, dword [esi + 4], 0x99
mov dword [esi + 4], eax
mov ecx, eax
imul ecx, eax
imul edx, ecx, 0x14a3
dec edx
mov eax, 0x2c387bd3
cmp ecx, edx
je 0x40a4db
mov eax, 0xb1bedde3
jmp 0x40a4db
cmp dword [0x4701fc], 1
mov eax, 0x75fa082a
je 0x40a4db
mov eax, 0x1249dc0b
jmp 0x40a4db
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
mov dword [esi + 0x24], eax
mov dword [esi], 0xaa3358b0
jmp 0x409ebe
imul eax, dword [esi + 4], 0xbd000
or eax, 0xa0
mov dword [esi + 4], eax
mov dword [esi], 0xd4622810
xor eax, eax
inc eax
mov dword [esi + 0x18], eax
jmp 0x409ebe
push dword [esi + 0x28]
call fcn.0044db0c
add esp, 4
mov dword [esi], 0xbbaf56f0
jmp 0x409ebe
imul ebx, ebx, 0x57a80000
add ebx, 0xffffe06b
call fcn.0040a5b7
mov dword [esi], 0x63c138c0
jmp 0x409ebe
mov eax, dword [esi + 4]
add eax, 0xffffffd5
shr eax, 0xe
mov ecx, eax
imul ecx, eax
imul edx, ecx, 0x55ad
shl eax, 5
add eax, 0xfffffc80
dec edx
mov dword [esi + 4], eax
mov eax, 0x78a13529
cmp ecx, edx
je 0x40a4db
mov eax, 0x3e41e8cd
jmp 0x40a4db
imul eax, dword [esi + 4], 0xb6
add eax, 0xffffff84
shr eax, 9
imul eax, eax, 0x6d
mov dword [esi + 4], eax
mov dword [esi], 0xedfbd3cf
jmp 0x409ebe
push dword [esi + 0x1c]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], eax
mov dword [esi], 0x327a55ad
jmp 0x409ebe
shr ebx, 1
add ebx, 0xffffffe6
shr ebx, 9
call fcn.0040a5b7
mov dword [esi], 0x9978191a
jmp 0x409ebe
push 0x800
mov dword [esi + 0x4c], ebx
lea ebx, [esi + 0x68]
push ebx
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push 0x80
mov eax, 3
push eax
push edi
push eax
push 0x80000000
push ebx
mov ebx, dword [esi + 0x4c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x14], eax
mov dword [esi], 0x626988b8
jmp 0x409ebe
imul eax, dword [esi + 4], 0xd3
mov ecx, eax
imul ecx, eax
imul edx, ecx, 0x3d5b
dec edx
add eax, 0x143
mov dword [esi + 4], eax
mov eax, 0x69962771
cmp edx, ecx
je 0x40a4db
mov eax, 0x8b71f59c
mov dword [esi], eax
jmp 0x409ebe
mov dword [esi], 0xc275a18f
jmp 0x409ebe
mov eax, dword [esi + 0x1c]
mov dword [esi], 0x12ec38b2
mov eax, dword [esi + 0x10]
mov dword [esi + 0xc], eax
jmp 0x409ebe
mov dword [esi], 0xd2d87be9
jmp 0x409ebe
imul eax, dword [esi + 4], 0xa939000
add eax, 0x46c69f4a
mov dword [esi + 4], eax
mov dword [esi], 0x3de22966
jmp 0x409ebe
cmp eax, 0xb8b656b8
jne 0x409ebe
jmp 0x40a594
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x470200]
mov ecx, dword [esi + 0x28]
add eax, ecx
add eax, 8
push 0x14
push 0x470204
push eax
call fcn.004406dd
add esp, 0xc
mov ecx, 0x81fa49ba
test eax, eax
je 0x40a567
mov ecx, 0xc37141f3
mov dword [esi], ecx
xor eax, eax
inc eax
jmp 0x409ebb
mov dword [esi + 0x3c], ebx
mov eax, dword [esi + 0xc]
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x34], eax
mov eax, dword [esi + 8]
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x2c], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 0x3c], ebx
mov eax, dword [esi + 0x18]
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x34], eax
mov eax, dword [esi + 8]
mov dword [esi + 0x38], eax
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]