Function at 0x401da0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x238
push ebx
push esi
push edi
mov esi, ecx
xor eax, eax
mov byte [esp + 0x140], 0
mov ecx, 0x40
lea edi, [esp + 0x141]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x3c], 0
mov ecx, 0x40
lea edi, [esp + 0x3d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00401d50
test eax, eax
jne 0x401e57
jmp 0x401df0
mov edx, dword [esi]
mov ebx, dword [sym.imp.USER32.dll_LoadStringA]
push 0x103
lea ecx, [esp + 0x144]
push ecx
push 0x7b
push edx
call ebx
test eax, eax
je 0x401e45
mov ecx, dword [esi]
push 0x103
lea eax, [esp + 0x40]
push eax
push 0x70
push ecx
call ebx
test eax, eax
je 0x401e45
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x148]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
je 0x401eca
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00401d50
test eax, eax
je 0x401df0
jmp 0x401e5d
mov ebx, dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [esp + 0x248]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401ed8
mov edx, dword [esi]
push 0x103
lea ecx, [esp + 0x144]
push ecx
push 0x6e
push edx
call ebx
test eax, eax
je 0x401eca
mov ecx, dword [esi]
push 0x103
lea eax, [esp + 0x40]
push eax
push 0x70
push ecx
call ebx
test eax, eax
je 0x401eca
mov ecx, dword [esi + 4]
push 0
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x148]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x238
ret 4
push ebp
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
sub ebx, 0x200
shr ebx, 9
mov ebp, ebx
shl ebp, 9
push ebp
call fcn.00403d84
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
jne 0x401f6f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x103
lea edx, [esp + 0x148]
push edx
push 0x71
push eax
call edi
test eax, eax
je 0x401f56
mov edx, dword [esi]
push 0x103
lea ecx, [esp + 0x44]
push ecx
push 0x70
push edx
call edi
test eax, eax
je 0x401f56
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x14c]
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.00403d7f
add esp, 4
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x238
ret 4
push 0
lea ecx, [esp + 0x20]
push ecx
push ebp
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push edi
jne 0x401ff2
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x103
lea edx, [esp + 0x148]
push edx
push 0x6e
push eax
call edi
test eax, eax
je 0x401fd6
mov edx, dword [esi]
push 0x103
lea ecx, [esp + 0x44]
push ecx
push 0x70
push edx
call edi
test eax, eax
je 0x401fd6
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x14c]
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x10]
push eax
call fcn.00403d7f
add esp, 4
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x238
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0x40d1e0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x402083
push eax
call edi
mov edx, dword [esi]
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x103
lea ecx, [esp + 0x148]
push ecx
push 0x72
push edx
call edi
test eax, eax
je 0x402067
mov ecx, dword [esi]
push 0x103
lea eax, [esp + 0x44]
push eax
push 0x70
push ecx
call edi
test eax, eax
je 0x402067
mov ecx, dword [esi + 4]
push 0
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x14c]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [esp + 0x10]
push edx
call fcn.00403d7f
add esp, 4
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x238
ret 4
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [esi + 4]
mov edi, dword [esp + 0x10]
push 0
push 0
push 0x449
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esi + 0x210]
mov dword [esp + 0x14], 2
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], 8
mov dword [esp + 0x28], 0
push 0
lea edx, [esp + 0x24]
push edx
push 0x1c
lea eax, [esp + 0x30]
push eax
push 0x1c
lea ecx, [esp + 0x38]
push ecx
push 3
push ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4020fb
test byte [esp + 0x3c], 1
je 0x402175
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x103
lea edx, [esp + 0x148]
push edx
push 0x7d
push eax
call edi
test eax, eax
je 0x40214b
mov edx, dword [esi]
push 0x103
lea ecx, [esp + 0x44]
push ecx
push 0x70
push edx
call edi
test eax, eax
je 0x40214b
mov edx, dword [esi + 4]
push 5
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x14c]
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], 4
je 0x4020d2
mov eax, dword [esp + 0x10]
push eax
call fcn.00403d7f
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x238
ret 4
xor edi, edi
test ebx, ebx
jbe 0x402262
nop
mov eax, dword [esi + 0x214]
test eax, eax
jne 0x4022a1
mov ecx, dword [esi + 0x210]
mov edx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x24]
push eax
push 0x1c
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x30]
push ecx
push 0x1c
mov dword [esp + 0x38], edx
lea edx, [esp + 0x38]
push edx
push 3
push ebp
mov dword [esp + 0x4c], 8
mov dword [esp + 0x48], edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4022ab
test byte [esp + 0x3c], 1
jne 0x4022ab
mov eax, dword [esi + 0x328]
test eax, eax
je 0x4021fb
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov eax, 0x1000
add edx, eax
add ecx, eax
test edi, edi
mov dword [esp + 0x14], edi
fild dword [esp + 0x14]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
jge 0x402226
fadd dword [0x40d1dc]
test ebx, ebx
mov dword [esp + 0x14], ebx
fild dword [esp + 0x14]
jge 0x402238
fadd dword [0x40d1dc]
fdivp st(1)
fmul dword [0x40d1d8]
call fcn.00403ddc
mov ecx, dword [esi + 4]
push eax
push 0
push 0x449
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
add edi, 8
cmp edi, ebx
jb 0x402180
mov edx, dword [esp + 0x10]
push edx
call fcn.00403d7f
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [esi + 4]
push 0x64
push 0
push 0x449
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x238
ret 4
mov edx, dword [esp + 0x10]
push edx
jmp 0x402157
mov eax, dword [esp + 0x10]
push eax
call fcn.00403d7f
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esi]
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x103
lea ecx, [esp + 0x148]
push ecx
push 0x73
push edx
call edi
test eax, eax
je 0x402166
mov ecx, dword [esi]
push 0x103
lea eax, [esp + 0x44]
push eax
push 0x70
push ecx
call edi
test eax, eax
je 0x402166
mov ecx, dword [esi + 4]
push 0
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x14c]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x238
ret 4