Function at 0x402a50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
lea edi, [ebp - 0x108]
mov ecx, 0x42
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
push 0xc
call fcn.0044bf44
add esp, 4
mov dword [ebp - 0x2c], eax
push 0xc
push 0
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0043d400
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
call fcn.0044bff7
add esp, 4
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
push 0x4647f4
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.0043f4a5
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x402c5e
push 2
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.0043fd25
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.00440384
add esp, 4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
add eax, 1
push eax
call fcn.0044bf44
add esp, 4
mov dword [ebp - 0x20], eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.0043fd25
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
push 1
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.0043f901
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.0043f6f8
add esp, 4
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x38]
mov byte [eax], 0
mov eax, dword [ebp - 0x38]
add eax, 1
push eax
call fcn.0044bf44
add esp, 4
mov dword [ebp - 0x14], eax
mov esi, esp
push 0
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
cmp esi, esp
call fcn.0043bb93
test eax, eax
je 0x402b75
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x38]
add edx, 1
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0
call fcn.0044c83c
add esp, 0x14
jmp 0x402b8c
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.0043f2f3
add esp, 0xc
cmp dword [ebp - 0x20], 0
je 0x402ba5
mov eax, dword [ebp - 0x20]
push eax
call fcn.0044af5d
add esp, 4
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00402610
add esp, 8
movzx edx, al
cmp edx, 1
jne 0x402c45
mov byte [ebp - 0x41], 0
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 4], 0
jne 0x402c43
push 0x14
call fcn.0044bf44
add esp, 4
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 4], eax
push 0x14
push 0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
push ecx
call fcn.0043d400
add esp, 0xc
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
mov dword [ecx], 1
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
mov dword [ecx + 0xc], 0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
mov dword [ecx + 0x10], 0
push 0x4647f0
call fcn.0044bff7
add esp, 4
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 4]
mov dword [edx + 4], eax
push str.iso_8859_1
call fcn.0044bff7
add esp, 4
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 4]
mov dword [edx + 8], eax
jmp 0x402c5c
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00402de0
add esp, 4
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x41], 1
jmp 0x402c62
mov byte [ebp - 0x41], 1
movzx eax, byte [ebp - 0x41]
cmp eax, 1
jne 0x402d90
movzx eax, byte [ebp + 0xc]
cmp eax, 1
jne 0x402d70
cmp dword [ebp - 0x2c], 0
jne 0x402cb0
push 0xc
call fcn.0044bf44
add esp, 4
mov dword [ebp - 0x2c], eax
push 0xc
push 0
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0043d400
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
call fcn.0044bff7
add esp, 4
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
push 0x14
call fcn.0044bf44
add esp, 4
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 4], eax
push 0x14
push 0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
push ecx
call fcn.0043d400
add esp, 0xc
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
mov dword [ecx], 1
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
mov dword [ecx + 0xc], 0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
mov dword [ecx + 0x10], 0
push 0x4647f0
call fcn.0044bff7
add esp, 4
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 4]
mov dword [edx + 4], eax
push str.iso_8859_1
call fcn.0044bff7
add esp, 4
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 4]
mov dword [edx + 8], eax
push 0x14
call fcn.0044bf44
add esp, 4
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 8], eax
push 0x14
push 0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 8]
push ecx
call fcn.0043d400
add esp, 0xc
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 8]
mov dword [ecx], 0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 8]
mov dword [ecx + 0xc], 0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 8]
mov dword [ecx + 0x10], 0
jmp 0x402d90
cmp dword [ebp - 0x2c], 0
je 0x402d89
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0044af5d
add esp, 4
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
push edx
mov ecx, ebp
push eax
lea edx, [0x402db8]
call fcn.0043bb3f
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x108
cmp ebp, esp
call fcn.0043bb93
mov esp, ebp
pop ebp
ret