Function at 0x40276c
Capabilities:
Get file size
Get file system object information
Hide graphical window
Read file on windows

Disassembly:
sub esp, 0x634
push ebx
push ebp
push esi
push edi
xor ebx, ebx
lea eax, [esp + 0x289]
push 0xff
mov ebp, ecx
mov dword [esp + 0x14], ebx
push ebx
push eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x20], ebx
mov byte [esp + 0x294], bl
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
mov word [esp + 0x80], ax
lea eax, [esp + 0x82]
push 0x106
push ebx
push eax
call sub.msvcrt.dll_memset
mov eax, dword [0x43b4e0]
add esp, 0xc
mov dword [esp + 0x2c], eax
call fcn.0040271a
mov edi, eax
mov ebx, edx
mov ecx, edi
or ecx, ebx
jne 0x402806
push ecx
push 0x401e80
push dword [0x43b564]
push 2
push dword [0x43b4c4]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
call fcn.0040271a
mov ebx, edx
mov edi, eax
or eax, ebx
je 0x402cba
push 0x5c
push ebp
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x40281f
mov esi, ebp
mov dword [esp + 0x20], ebp
jmp 0x402826
add esi, 2
mov dword [esp + 0x20], esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
mov dword [esp + 0x24], ebp
cmp ebp, 0xffffffff
je 0x402cba
lea eax, [esp + 0x38]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x402cb3
push 0x640000
push 0
push 0x401
push dword [0x43b578]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x402
push dword [0x43b578]
call dword [sym.imp.USER32.dll_SendMessageW]
push 5
push dword [0x43b578]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x100000
call dword [sym.imp.msvcrt.dll_malloc]
mov dword [esp + 0x1c], eax
pop ecx
test eax, eax
je 0x402c8e
push ebx
push edi
call fcn.00405867
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4029ae
and dword [esp + 0x28], 0
cmp dword [edi], 0
jle 0x4029ae
mov ebp, dword [esp + 0x28]
lea ebx, [edi + 0x9c]
mov eax, dword [ebx]
mov ecx, dword [ebx - 0x98]
add eax, 0x134
add eax, edi
push eax
call dword [ecx + 0x10]
inc ebp
lea ebx, [ebx + 4]
pop ecx
cmp ebp, dword [edi]
jl 0x4028e0
jmp 0x4029aa
cmp dword [esp + 0x1c], 0
jbe 0x4029ce
cmp dword [0x43b4f8], 0
jne 0x402c96
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push 0
pop edx
push edx
push edx
adc ecx, edx
mov dword [esp + 0x18], eax
push 0x64
push ecx
push eax
mov dword [esp + 0x28], ecx
call fcn.00401ac0
push dword [esp + 0x40]
push dword [esp + 0x40]
push edx
push eax
call fcn.00401b00
push eax
push 0x402
push dword [0x43b578]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
test edi, edi
je 0x4029b2
and dword [esp + 0x28], 0
cmp dword [edi], 0
jle 0x4029b2
mov ebp, dword [esp + 0x18]
lea ebx, [edi + 0x9c]
mov esi, dword [esp + 0x28]
mov ecx, dword [ebx - 0x98]
push eax
mov eax, dword [ebx]
add eax, 0x134
add eax, edi
push ebp
push eax
call dword [ecx + 0x14]
mov eax, dword [esp + 0x3c]
lea ebx, [ebx + 4]
add esp, 0xc
inc esi
cmp esi, dword [edi]
jl 0x402982
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x20]
push eax
push 0x100000
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402901
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push ebp
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push dword [0x43b578]
or ebp, 0xffffffff
mov dword [esp + 0x2c], ebp
call dword [sym.imp.USER32.dll_ShowWindow]
test byte [esp + 0x2c], 2
mov ebp, dword [esp + 0x34]
cmovne esi, ebp
mov dword [esp + 0x20], ebx
test byte [0x43b4e0], 1
je 0x402aa6
push 0x38
lea eax, [esp + 0x4c]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esp + 0x44], 3
mov dword [esp + 0x58], esi
push ebx
push ebx
push 0x1004
push dword [0x43b568]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x2b0
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x390]
push ebx
push eax
mov dword [esp + 0x394], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x388]
push 0x4010
push 0x2b4
push eax
push 0x80
push ebp
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [esp + 0x38c]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x44]
push eax
push ebx
push 0x104d
push dword [0x43b568]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x20], eax
jmp 0x402aad
mov ecx, esi
call fcn.00401fb6
xor edx, edx
mov ecx, 0x42b370
call fcn.00404e77
xor edx, edx
mov ecx, esi
call fcn.00404e77
mov esi, ebx
lea ecx, [edi + 0x9c]
mov ebx, dword [esp + 0x34]
push 4
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ecx
pop ebp
mov eax, dword [ebp + 0x439380]
test eax, 0x1000
je 0x402c46
xor edx, edx
and eax, 0x3f
mov word [esp + 0x188], dx
cmp eax, 0x3c
je 0x402bc6
cmp eax, 0x3d
jne 0x402b3d
push 0x80
lea eax, [esp + 0x18c]
push eax
push dword [esp + 0x44]
push dword [esp + 0x44]
call dword [sym.imp.SHLWAPI.dll_StrFormatByteSizeW]
lea edx, [esp + 0x80]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
lea eax, [eax + 2]
test cx, cx
jne 0x402b29
jmp 0x402bc6
cmp eax, 0x3e
jne 0x402b74
lea eax, [esp + 0x388]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402bc2
lea edx, [esp + 0x80]
lea ecx, [esp + 0x39c]
call fcn.00402665
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x402bc2
cmp eax, 0x26
jae 0x402bc6
imul esi, eax, 0x1c
lea eax, [esp + 0x288]
push eax
mov eax, dword [ecx]
add eax, 0x134
add eax, edi
add esi, 0x439440
push eax
call dword [esi + 0x18]
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x290]
add dword [esp + 0x18], 4
lea ecx, [esp + 0x88]
shr eax, 2
not eax
and eax, 1
push eax
push dword [esi + 8]
call fcn.0040592e
add esp, 0x10
mov esi, dword [esp + 0x14]
mov ecx, dword [ebp + 0x439380]
lea edx, [esp + 0x188]
push 0x80
and ecx, 0x3f
call fcn.00403838
pop ecx
lea edx, [esp + 0x80]
lea ecx, [esp + 0x188]
call fcn.00404e77
test byte [0x43b4e0], 1
je 0x402c2d
lea eax, [esp + 0x80]
inc esi
mov dword [esp + 0x58], eax
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x24]
mov dword [esp + 0x1c], esi
push 0x1074
push dword [0x43b568]
mov dword [esp + 0x5c], esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x402c42
push ecx
lea edx, [esp + 0x84]
lea ecx, [esp + 0x18c]
call fcn.0040206f
pop ecx
mov ecx, dword [esp + 0x10]
add ebp, 4
cmp ebp, 0xa4
jb 0x402ad9
xor esi, esi
push esi
push esi
push 0x1004
push dword [0x43b568]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebp, dword [esp + 0x24]
mov ebx, esi
mov dword [esp + 0x1c], eax
test eax, eax
je 0x402c96
push esi
dec eax
push eax
push 0x1013
push dword [0x43b568]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x402c96
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x18]
test edi, edi
je 0x402ca2
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
test ebx, ebx
je 0x402cae
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp ebp, 0xffffffff
je 0x402cba
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x634
ret