Function at 0x403331
Capabilities:
Read file on windows

Disassembly:
push 0x274
mov eax, 0x417201
call fcn.004092e2
xor ebx, ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov esi, dword [ebp + 0x14]
mov byte [ebp - 4], 4
mov edi, dword [esi + 0x20]
lea eax, [ebp - 0x44]
call fcn.004010c5
push dword [esi + 0x1c]
mov edi, dword [ebp + 8]
push dword [esi + 0x18]
add edi, 0x70
mov ecx, edi
mov dword [ebp - 0x34], edi
call fcn.00401b3a
call fcn.00402189
mov ecx, edi
call fcn.00401b3a
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
cmp ecx, eax
mov dword [ebp - 0x10], ecx
jne 0x4033c5
mov dword [ebp - 0x10], eax
push ebx
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x3c]
xor edi, edi
lea eax, [ebp - 0x44]
call fcn.004010fc
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x18
call fcn.00406478
mov edi, eax
pop ecx
mov dword [ebp - 0x10], edi
cmp edi, ebx
mov byte [ebp - 4], 5
je 0x403416
lea eax, [ebp - 0x44]
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
call fcn.00401189
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [ebp - 0x10], edi
jmp 0x403419
mov dword [ebp - 0x10], ebx
lea edi, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.004040a0
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x40344f
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x403443
push 4
call fcn.00406478
pop ecx
mov dword [ebp - 0x1c], eax
mov dword [eax], ebx
inc dword [eax]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], ebx
push dword [esi + 0x2c]
mov ecx, dword [ebp - 0x34]
push dword [esi + 0x28]
call fcn.00401b3a
call fcn.00402189
push 0x50
call fcn.00406478
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
mov byte [ebp - 4], 6
je 0x4034a0
mov ecx, dword [ebp - 0x34]
call fcn.00401b3a
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
cmp ecx, eax
je 0x403489
mov eax, ecx
push dword [esi + 0x34]
push dword [esi + 0x30]
push dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
push dword [ebp - 0x10]
call fcn.00401d81
jmp 0x4034a2
xor eax, eax
mov edi, eax
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 4
call fcn.00403a08
push 0x50
call fcn.00406478
pop ecx
mov dword [ebp - 0x34], eax
cmp eax, ebx
mov byte [ebp - 4], 7
je 0x4034ce
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00401cfc
jmp 0x4034d0
xor eax, eax
mov edi, eax
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 4
call fcn.00403a08
push 0x40
call fcn.00406478
pop ecx
mov dword [ebp + 0xc], eax
cmp eax, ebx
mov byte [ebp - 4], 8
je 0x4034fe
push dword [ebp + 0x10]
push eax
call fcn.00401ecd
mov edi, eax
jmp 0x403500
xor edi, edi
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.00401c7f
cmp edi, ebx
je 0x403533
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
mov dword [ebp - 0x30], edi
jne 0x403527
push 4
call fcn.00406478
pop ecx
mov dword [ebp - 0x2c], eax
mov dword [eax], ebx
inc dword [eax]
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], ebx
lea ecx, [ebp - 0x30]
call fcn.00404054
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6c]
mov ecx, dword [ebp + 0x14]
mov esi, dword [ecx + 0x10]
mov edi, dword [ecx + 0x14]
mov ecx, fcn.00403689
test ecx, ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], edx
je 0x40355f
mov ecx, esi
or ecx, edi
je 0x403565
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], edi
cmp dword [ebp - 0x20], ebx
jne 0x40358f
xor eax, eax
inc eax
lea esi, [ebp - 0x174]
call fcn.00404ea7
mov dword [ebp - 0x174], 0x41d700
push 0x41ea38
mov eax, esi
push eax
call fcn.00408ed1
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jge 0x403665
cmp eax, ebx
jl 0x403665
imul eax, eax, 0x18
add eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x30]
mov esi, eax
call fcn.00404054
lea ecx, [ebp - 0x54]
mov edi, eax
call fcn.00403c25
push eax
push esi
push edi
lea ecx, [ebp - 0x64]
call fcn.00403c25
push eax
call fcn.00401750
add esp, 0x10
test eax, eax
jne 0x403617
lea esi, [ebp - 0x44]
call fcn.00404012
lea edi, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.004040a0
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00401c7f
lea esi, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00401c7f
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x64]
call fcn.00401c7f
push 0xe
pop eax
call fcn.00409384
ret 0x10
lea ecx, [ebp - 0x30]
call fcn.00404054
mov esi, eax
call fcn.00401fd7
test al, al
lea esi, [ebp - 0x44]
je 0x4035d8
call fcn.00404012
lea edi, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.004040a0
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00401c7f
lea esi, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00401c7f
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x64]
call fcn.00401c7f
xor eax, eax
jmp 0x40360f
push 2
pop eax
lea esi, [ebp - 0x280]
call fcn.00404ea7
mov dword [ebp - 0x280], 0x41d700
push 0x41ea38
mov eax, esi
jmp 0x403589