Function at 0x443240
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 8], ecx
test ebx, ebx
je 0x44329a
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x44329a
lea edi, [eax + eax]
mov eax, edi
call fcn.004b1530
mov esi, esp
test esi, esi
je 0x44329a
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x44329c
xor eax, eax
push 0x4d3b74
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
mov edi, eax
add esp, 8
mov dword [ebp - 0x14], edi
test edi, edi
je 0x443302
mov ebx, dword [sym.imp.MSVCR100.dll_fseek]
push 2
push 0
push edi
call ebx
push edi
call dword [sym.imp.MSVCR100.dll_ftell]
push 0
push 0
push edi
mov esi, eax
call ebx
shr esi, 1
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b0bb6
mov ebx, eax
add esp, 0x20
mov dword [ebp - 0x1c], ebx
push edi
test ebx, ebx
jne 0x44330c
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov eax, 0x80004005
jmp 0x4434da
push esi
push 2
push ebx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp esi, eax
je 0x443337
push ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
push edi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 8
mov eax, 0x80004005
jmp 0x4434da
mov ecx, dword [ebp - 8]
xor eax, eax
push eax
push ecx
push esi
push ebx
mov word [ebx + esi*2], ax
call fcn.004404a0
test eax, eax
js 0x44331d
mov esi, dword [ebp - 8]
lea edx, [ebp + 0x10]
push edx
lea ecx, [esi + 4]
call fcn.00442c70
mov ebx, eax
lea eax, [ebp + 0x10]
push eax
lea ecx, [esi + 0x14]
mov dword [ebp - 0x10], ebx
call fcn.00442c70
cmp dword [ebp + 0x14], 0
mov dword [ebp - 0xc], eax
je 0x443427
mov esi, dword [ebx]
mov ebx, dword [ebx + 4]
cmp esi, ebx
mov ebx, dword [ebp + 0xc]
je 0x4433bc
lea edi, [esi + 0x1c]
lea esp, [esp]
push edi
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push ebx
call fcn.00405cd0
mov ecx, dword [ebp - 8]
call fcn.00441c50
mov ecx, dword [ebp - 0x10]
add esi, 0x38
add edi, 0x38
cmp esi, dword [ecx + 4]
jne 0x443390
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x14]
mov esi, dword [eax]
cmp esi, dword [eax + 4]
je 0x4434c5
lea edi, [esi + 0x1c]
lea ebx, [ebx]
push edi
push esi
sub esp, 0x1c
mov ecx, esp
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov eax, ebx
mov word [ecx], dx
lea edx, [eax + 2]
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x10], edx
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4433f5
sub eax, dword [ebp - 0x10]
sar eax, 1
push eax
push ebx
call fcn.00405660
mov ecx, dword [ebp - 8]
call fcn.00441c50
mov eax, dword [ebp - 0xc]
add esi, 0x38
add edi, 0x38
cmp esi, dword [eax + 4]
jne 0x4433d0
jmp 0x4434c2
mov edi, dword [eax + 4]
mov eax, dword [eax]
mov ebx, dword [ebp + 0xc]
cmp edi, eax
je 0x44345e
lea esi, [edi - 0x38]
push esi
lea ecx, [esi + 0x1c]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push ebx
call fcn.00405cd0
mov ecx, dword [ebp - 8]
call fcn.00441c50
mov edx, dword [ebp - 0xc]
sub edi, 0x38
sub esi, 0x38
cmp edi, dword [edx]
jne 0x443436
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
cmp esi, dword [eax + 4]
je 0x4434c2
lea edi, [esi + 0x1c]
jmp 0x443470
push esi
push edi
sub esp, 0x1c
mov ecx, esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
mov eax, ebx
lea edx, [eax + 2]
mov dword [ebp - 0x18], esp
mov dword [ebp - 0xc], edx
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x443495
sub eax, dword [ebp - 0xc]
sar eax, 1
push eax
push ebx
call fcn.00405660
mov ecx, dword [ebp - 8]
call fcn.00441c50
mov eax, dword [ebp - 0x10]
add esi, 0x38
add edi, 0x38
cmp esi, dword [eax + 4]
jne 0x443470
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
push edi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 8
xor eax, eax
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret 0x10