Function at 0x404140
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x2dc
mov eax, dword [0x41f060]
xor eax, esp
mov dword [esp + 0x2d8], eax
mov eax, dword [esp + 0x2e4]
sub eax, 1
push ebx
push esi
mov esi, dword [esp + 0x2e8]
je 0x4042fd
sub eax, 0x110
jne case.0x404193.15
movzx eax, word [esp + 0x2f0]
add eax, 0xfffffff4
cmp eax, 0x59
ja case.0x404193.15
movzx eax, byte [eax + 0x404430]
jmp dword [eax*4 + 0x40441c]
xor ecx, ecx
cmp dword [0x420bac], ecx
sete cl
xor eax, eax
mov dword [0x420bac], ecx
jmp 0x404401
call fcn.00402340
xor eax, eax
jmp 0x404401
xor ebx, ebx
push ebx
cmp dword [0x420bac], ebx
je 0x4042d4
mov edx, dword [0x426a74]
mov eax, dword [0x426498]
push edx
push eax
call fcn.00409d82
mov ecx, dword [0x426498]
push ecx
push 4
lea edx, [esp + 0x1c]
push 1
push edx
call fcn.0040a459
mov eax, dword [0x426498]
mov ecx, dword [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0x34]
push 1
push edx
call fcn.0040a459
mov ecx, dword [0x426498]
mov eax, dword [esp + 0x34]
push ecx
push 4
lea edx, [esp + 0x3c]
push 1
push edx
mov byte [esp + eax + 0x4c], bl
call fcn.0040a459
mov eax, dword [0x426498]
mov ecx, dword [esp + 0x44]
push eax
push ecx
lea edx, [esp + 0x11c]
push 1
push edx
call fcn.0040a459
mov ecx, dword [0x426498]
mov eax, dword [esp + 0x54]
add esp, 0x4c
push ecx
push 4
lea edx, [esp + 0x10]
push 1
push edx
mov byte [esp + eax + 0xe8], bl
call fcn.0040a459
mov eax, dword [0x426498]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x8c]
push 1
push edx
call fcn.0040a459
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0xfc]
push edx
push 0x426958
mov byte [esp + eax + 0xa0], bl
lea eax, [esp + 0x208]
push str._s_s__s
push eax
call fcn.0040a6c6
lea ecx, [esp + 0x210]
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.004017e0
push 1
call fcn.004023d0
add esp, 0x40
xor eax, eax
jmp 0x404401
call fcn.004023d0
add esp, 4
xor eax, eax
jmp 0x404401
call fcn.00402520
test eax, eax
je case.0x404193.15
mov dword [0x426760], 1
xor eax, eax
jmp 0x404401
mov eax, dword [0x426a74]
mov ecx, dword [0x426498]
xor ebx, ebx
push ebx
push eax
push ecx
call fcn.00409d82
mov edx, dword [0x426498]
push edx
push 4
lea eax, [esp + 0x1c]
push 1
push eax
call fcn.0040a459
mov ecx, dword [0x426498]
mov edx, dword [esp + 0x24]
push ecx
push edx
lea eax, [esp + 0x34]
push 1
push eax
call fcn.0040a459
mov edx, dword [0x426498]
mov ecx, dword [esp + 0x34]
push edx
push 4
lea eax, [esp + 0x3c]
push 1
push eax
mov byte [esp + ecx + 0x4c], bl
call fcn.0040a459
mov ecx, dword [0x426498]
mov edx, dword [esp + 0x44]
push ecx
push edx
lea eax, [esp + 0x11c]
push 1
push eax
call fcn.0040a459
mov edx, dword [0x426498]
mov ecx, dword [esp + 0x54]
add esp, 0x4c
push edx
push 4
lea eax, [esp + 0x10]
push 1
push eax
mov byte [esp + ecx + 0xe8], bl
call fcn.0040a459
mov ecx, dword [0x426498]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0x8c]
push 1
push eax
call fcn.0040a459
mov edx, dword [0x426498]
mov ecx, dword [esp + 0x28]
push edx
push 4
lea eax, [esp + 0x34]
push 1
push eax
mov byte [esp + ecx + 0xa4], bl
call fcn.0040a459
add esp, 0x30
cmp dword [esp + 0xc], ebx
je 0x4043ec
mov dword [0x420bac], 1
push 1
jmp 0x4043f3
mov dword [0x420bac], ebx
push ebx
push 0x65
push esi
call dword [sym.imp.USER32.dll_CheckDlgButton]
mov eax, 1
mov ecx, dword [esp + 0x2e0]
pop esi
pop ebx
xor ecx, esp
call fcn.0040a476
add esp, 0x2dc
ret 0x10