Function at 0x43fe50
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
push 1
push 0
mov esi, ecx
mov ecx, dword [0x4c1e48]
push 0xffffffffffffffff
push 0
mov dword [esp + 0x2c], ecx
call fcn.00471c00
mov eax, dword [0x4be3fc]
mov eax, dword [eax + 0xf4]
xor ebp, ebp
and eax, 0x7fffffff
mov byte [esp + 0x17], 0
mov byte [esp + 0x18], 0
mov dword [esp + 0x28], 0xfffffffd
mov dword [esp + 0x24], eax
mov eax, esi
lea ebx, [ebx]
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x43fead
cmp ecx, 9
jne 0x43feb2
add eax, 2
jmp 0x43fea0
cmp word [eax], 0x2a
jne 0x43ffaa
movzx edi, word [eax + 2]
lea esi, [eax + 2]
test edi, 0xffffff80
jne 0x43fedd
push 2
push edi
call fcn.004893ee
add esp, 8
test eax, eax
je 0x43fedd
and edi, 0xffffffdf
movzx eax, di
add eax, 0xffffffbd
cmp eax, 0x11
ja case.0x43fef3.68
movzx ecx, byte [eax + 0x4403d4]
jmp dword [ecx*4 + 0x4403c0]
mov byte [esp + 0x18], 1
jmp case.0x43fef3.68
lea edi, [esi + 2]
mov eax, edi
call fcn.0040c8e0
movzx edx, al
neg edx
sbb edx, edx
and edx, 6
add edx, 0xa
push edx
push 0
push edi
call fcn.00489b92
mov ebp, edx
add esp, 0xc
mov dword [esp + 0x28], eax
test ebp, ebp
jne 0x43ff36
cmp eax, 0xffffffff
jbe 0x43ff40
mov dword [esp + 0x28], 0xffffffff
xor ebp, ebp
mov ebx, 0x49e544
mov eax, esi
call fcn.00408f40
mov esi, eax
test esi, esi
je 0x44033a
sub esi, 2
jmp case.0x43fef3.68
lea eax, [esi + 2]
push eax
call fcn.00489436
mov dword [esp + 0x28], eax
add esp, 4
mov ebx, 0x49e544
mov eax, esi
call fcn.00408f40
mov esi, eax
test esi, esi
je 0x44036d
sub esi, 2
jmp case.0x43fef3.68
mov byte [esp + 0x17], 1
cmp word [esi], 0
je 0x43fe98
add esi, 2
cmp word [esi], 0
je 0x43fe98
add esi, 2
jmp 0x43fe98
push 0
push 0x8000000
push 3
push 0
push 3
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x440002
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4be3fc]
cmp byte [ecx + 0x100], 0
mov dword [ecx + 0x30], eax
jne 0x4403a0
mov eax, dword [0x4c26a8]
push eax
or eax, edi
mov ecx, 0x49e334
call fcn.00401200
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
cmp byte [esp + 0x18], 0
je 0x440032
mov ecx, dword [esp + 0x1c]
mov al, byte [ecx + 0x17]
test al, al
jne 0x44001a
mov ecx, dword [ecx + 0xc]
mov al, byte [ecx + 0x17]
cmp al, 2
jne 0x440032
mov edx, dword [esp + 0x34]
push edx
call fcn.00440ea0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov ecx, edi
call fcn.00470150
mov ebx, eax
and eax, edx
cmp eax, 0xffffffff
jne 0x44006c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4be3fc]
push edi
mov dword [ecx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x34]
push edx
call fcn.00430f50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
cmp edx, ebp
jb 0x44007e
ja 0x440078
cmp ebx, dword [esp + 0x28]
jbe 0x44007e
mov ebx, dword [esp + 0x28]
mov edx, ebp
mov eax, ebx
or eax, edx
jne 0x4400b6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x4be3fc]
mov edx, dword [0x4c26a8]
mov dword [ecx + 0x30], 0
push edx
or eax, 0xffffffff
mov ecx, 0x49b8c0
call fcn.00401200
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
cmp byte [esp + 0x18], 0
je 0x440122
mov esi, dword [esp + 0x1c]
push 0
mov eax, ebx
mov ecx, ebx
and ecx, 1
shr eax, 1
push 1
add eax, ecx
push eax
push 0
mov ecx, esi
call fcn.00471c00
cmp eax, 1
jne 0x440134
cmp byte [esi + 0x17], 0
mov ebp, esi
jne 0x4400ea
mov esi, dword [ebp + 0xc]
test byte [esi + 0x15], 8
je 0x4400f7
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x440110
test byte [esi + 0x15], 4
je 0x44010b
mov eax, esi
call fcn.0042f5b0
mov esi, dword [esi + 8]
jmp 0x440130
cmp al, 2
jne 0x44011b
call fcn.00401000
jmp 0x44012e
mov esi, 0x4c3fa8
jmp 0x440169
lea edx, [ebx + 2]
push edx
call fcn.00488234
add esp, 4
mov esi, eax
test esi, esi
jne 0x440165
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x18], 0
jne 0x44030e
mov ecx, dword [esp + 0x34]
push 0x4a59a4
push 0
push str.Out_of_memory.
call fcn.0042ed60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov ebp, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x24]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4be3fc]
push edi
mov dword [ecx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x4402dc
cmp byte [esp + 0x18], 0
mov edx, dword [esp + 0x20]
mov byte [edx + esi], 0
mov eax, dword [esp + 0x20]
mov byte [eax + esi + 1], 0
jne 0x440283
mov eax, dword [esp + 0x20]
cmp eax, 3
jb 0x4401e8
cmp byte [esi], 0xef
jne 0x4401e8
cmp byte [esi + 1], 0xbb
jne 0x4401e8
cmp byte [esi + 2], 0xbf
jne 0x4401e8
add eax, 0xfffffffd
push eax
lea ecx, [esi + 3]
push ecx
push ebp
mov ebx, 0xfde9
call fcn.004726d0
jmp 0x440215
cmp eax, 2
jb 0x440231
cmp byte [esi], 0xff
jne 0x440231
cmp byte [esi + 1], 0xfe
jne 0x440231
mov dl, 1
mov ecx, esi
test dl, dl
je 0x440206
lea ecx, [esi + 2]
add eax, 0xfffffffe
push 1
push 0
shr eax, 1
push eax
push ecx
mov ecx, ebp
call fcn.00471c00
test eax, eax
jne 0x44021d
mov dword [esp + 0x1c], eax
push esi
call fcn.004897ff
add esp, 4
cmp byte [ebp + 0x17], 0
jne 0x440249
mov esi, dword [ebp + 0xc]
jmp 0x44024b
mov ebx, dword [esp + 0x24]
xor dl, dl
cmp ebx, 0x4b0
je 0x4401fa
push eax
push esi
push ebp
call fcn.004726d0
jmp 0x440215
mov esi, ebp
test byte [esi + 0x15], 8
je 0x440258
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x440271
test byte [esi + 0x15], 4
je 0x44026c
mov eax, esi
call fcn.0042f5b0
mov esi, dword [esi + 8]
jmp 0x440283
cmp al, 2
jne 0x44027e
call fcn.00401000
mov esi, eax
jmp 0x440283
mov esi, 0x4c3fa8
cmp byte [esp + 0x17], 0
je 0x4402a7
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x4a4fdc
push 0x4a4468
push esi
xor eax, eax
call fcn.0046f8a0
add esp, 0x1c
cmp byte [esp + 0x18], 0
je 0x4402bd
mov esi, dword [esp + 0x20]
mov eax, ebp
call fcn.00412c00
mov dword [eax], esi
jmp 0x4402fe
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4402c0
sub esi, ecx
sar esi, 1
mov eax, ebp
add esi, esi
call fcn.00412c00
mov dword [eax], esi
jmp 0x4402fe
xor edx, edx
mov eax, ebp
mov word [esi], dx
call fcn.00412c00
cmp byte [esp + 0x18], 0
mov dword [eax], 0
jne 0x4402fe
push esi
call fcn.004897ff
add esp, 4
mov eax, dword [esp + 0x18]
push eax
mov eax, ebp
call fcn.00412d50
test eax, eax
jne 0x44031a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
cmp dword [esp + 0x1c], 0
mov eax, dword [esp + 0x34]
sete cl
movzx edx, cl
push edx
push eax
call fcn.0042eb20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov eax, dword [0x4be3fc]
cmp byte [eax + 0x100], 0
mov dword [eax + 0x30], 0x57
jne 0x4403a0
mov ecx, dword [0x4c26a8]
push ecx
or eax, 0xffffffff
mov ecx, 0x49e334
call fcn.00401200
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov eax, dword [0x4be3fc]
cmp byte [eax + 0x100], 0
mov dword [eax + 0x30], 0x57
jne 0x4403a0
mov edx, dword [0x4c26a8]
push edx
or eax, 0xffffffff
mov ecx, 0x49e334
call fcn.00401200
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov ecx, dword [esp + 0x34]
push 0x4a59a4
push 0
push 0x49e334
call fcn.0042ea30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4