Function at 0x43d330
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [0x4a2b90]
push esi
mov esi, ecx
push edi
mov ecx, ebp
mov dword [esp + 0x1c], ebp
call fcn.00412530
mov eax, dword [0x49f440]
mov eax, dword [eax + 0xd8]
xor ebx, ebx
and eax, 0x7fffffff
mov byte [esp + 0x17], 0
mov byte [esp + 0x18], 0
mov dword [esp + 0x28], 0xfffffffd
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], eax
mov eax, esi
mov cl, byte [eax]
cmp cl, 0x20
je 0x43d384
cmp cl, 9
jne 0x43d387
inc eax
jmp 0x43d378
cmp byte [eax], 0x2a
jne 0x43d4e4
movzx edi, byte [eax + 1]
lea esi, [eax + 1]
test edi, 0xffffff80
jne 0x43d3b1
push 2
push edi
call fcn.0048061e
add esp, 8
cmp eax, ebx
je 0x43d3b1
and edi, 0xffffffdf
mov eax, edi
movsx eax, al
add eax, 0xffffffbd
cmp eax, 0x11
ja case.0x43d3c9.68
movzx ecx, byte [eax + 0x43d8e4]
jmp dword [ecx*4 + 0x43d8d0]
mov byte [esp + 0x18], 1
jmp case.0x43d3c9.68
lea edi, [esi + 1]
mov eax, edi
call fcn.0040c820
movzx edx, al
neg edx
sbb edx, edx
and edx, 6
add edx, 0xa
push edx
push ebx
push edi
call fcn.00480e5a
add esp, 0xc
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
cmp edx, ebx
ja 0x43d40d
cmp eax, 0xffffffff
jbe 0x43d419
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x2c], ebx
mov dl, byte [esi]
test dl, dl
je 0x43d43b
nop
mov ecx, 0x493fd4
mov al, 0x20
cmp dl, al
je 0x43d473
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x43d427
mov dl, byte [esi + 1]
inc esi
test dl, dl
jne 0x43d420
mov eax, dword [0x49f440]
mov dword [eax + 0x30], 0x57
cmp byte [eax + 0xe4], bl
jne 0x43d8b1
mov edx, dword [0x4a33f4]
push 1
push ebx
push 0xffffffffffffffff
push 0x493ec0
push edx
call fcn.0046f1f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
dec esi
jmp case.0x43d3c9.68
lea eax, [esi + 1]
push eax
call fcn.00480666
mov dl, byte [esi]
add esp, 4
mov dword [esp + 0x24], eax
test dl, dl
je 0x43d4ab
lea esp, [esp]
mov ecx, 0x493fd4
mov al, 0x20
cmp dl, al
je 0x43d473
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x43d497
mov dl, byte [esi + 1]
inc esi
test dl, dl
jne 0x43d490
mov eax, dword [0x49f440]
mov dword [eax + 0x30], 0x57
cmp byte [eax + 0xe4], bl
jne 0x43d8b1
push 1
push ebx
jmp 0x43d520
mov byte [esp + 0x17], 1
cmp byte [esi], bl
je 0x43d376
inc esi
cmp byte [esi], bl
je 0x43d376
inc esi
jmp 0x43d376
push 0
push 0x8000000
push 3
push 0
push 3
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x43d548
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x49f440]
cmp byte [ecx + 0xe4], 0
mov dword [ecx + 0x30], eax
jne 0x43d53c
push 1
push 0
mov eax, dword [0x4a33f4]
push 0xffffffffffffffff
push 0x493ec0
push eax
call fcn.0046f1f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
push 0x49281e
push 0
jmp 0x43d8b7
cmp byte [esp + 0x18], 0
je 0x43d576
mov al, byte [ebp + 0x17]
test al, al
jne 0x43d55c
mov ecx, dword [ebp + 0xc]
mov al, byte [ecx + 0x17]
cmp al, 2
jne 0x43d576
mov edx, dword [esp + 0x34]
push edx
mov edi, ebx
call fcn.0043e360
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov ecx, ebx
call fcn.0046d6f0
mov edi, eax
and eax, edx
cmp eax, 0xffffffff
jne 0x43d5b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x49f440]
push ebx
mov dword [ecx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x34]
push edx
call fcn.0042eed0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov eax, dword [esp + 0x2c]
cmp edx, eax
jb 0x43d5c6
ja 0x43d5c0
cmp edi, dword [esp + 0x28]
jbe 0x43d5c6
mov edi, dword [esp + 0x28]
mov edx, eax
mov eax, edi
or eax, edx
jne 0x43d601
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x4a33f4]
mov ecx, dword [0x49f440]
push 1
push 0
push 0xffffffffffffffff
push 0x492868
push edx
mov dword [ecx + 0x30], 0
call fcn.0046f1f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
cmp byte [esp + 0x18], 0
je 0x43d6e8
push 0
push 1
push edi
push 0
push ebp
call fcn.0046f1f0
cmp eax, 1
jne 0x43d6fe
cmp byte [ebp + 0x17], 0
jne 0x43d62d
mov esi, dword [ebp + 0xc]
jmp 0x43d62f
mov esi, ebp
test byte [esi + 0x15], 8
je 0x43d63c
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x43d658
test byte [esi + 0x15], 4
je 0x43d650
mov eax, esi
call fcn.0042d4f0
mov esi, dword [esi + 8]
jmp 0x43d6f6
cmp al, 2
jne 0x43d666
call fcn.00401000
jmp 0x43d6f4
mov esi, 0x4a44fd
push 0
lea ecx, [esp + 0x24]
push ecx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x49f440]
push ebx
mov dword [edx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x43d854
cmp byte [esp + 0x18], 0
mov eax, dword [esp + 0x20]
mov byte [eax + esi], 0
mov ecx, dword [esp + 0x20]
mov byte [ecx + esi + 1], 0
jne 0x43d7f7
mov eax, dword [esp + 0x20]
cmp eax, 3
jb 0x43d72f
cmp byte [esi], 0xef
jne 0x43d72f
cmp byte [esi + 1], 0xbb
jne 0x43d72f
cmp byte [esi + 2], 0xbf
jne 0x43d72f
mov ecx, dword [esp + 0x1c]
push 0xfde9
push ecx
lea edx, [esi + 3]
lea ecx, [eax - 3]
call fcn.0046fca0
jmp 0x43d75a
lea eax, [edi + 2]
push eax
call fcn.0047f2b9
add esp, 4
mov esi, eax
test esi, esi
jne 0x43d66b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x18], 0
jne 0x43d888
mov ecx, dword [esp + 0x34]
push 0x49281e
push 0
push str.Out_of_memory.
call fcn.0042ccd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
cmp eax, 2
jb 0x43d778
cmp byte [esi], 0xff
jne 0x43d778
cmp byte [esi + 1], 0xfe
jne 0x43d778
mov cl, 1
mov ebx, esi
test cl, cl
je 0x43d74d
lea ebx, [esi + 2]
add eax, 0xfffffffe
shr eax, 1
push eax
mov eax, dword [esp + 0x20]
push eax
call fcn.0046fd70
test eax, eax
jne 0x43d760
xor ebp, ebp
push esi
call fcn.0047f118
mov ebx, dword [esp + 0x20]
add esp, 4
cmp byte [ebx + 0x17], 0
jne 0x43d7bb
mov esi, dword [ebx + 0xc]
jmp 0x43d7bd
mov edi, dword [esp + 0x24]
xor cl, cl
cmp edi, 0x4b0
je 0x43d741
test edi, edi
je 0x43d7ab
call dword [sym.imp.KERNEL32.dll_GetACP]
cmp edi, eax
je 0x43d7a7
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push edi
push edx
mov edx, esi
call fcn.0046fca0
jmp 0x43d75a
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
push eax
mov edi, esi
mov eax, ebx
call fcn.0046f850
jmp 0x43d76d
mov esi, ebx
test byte [esi + 0x15], 8
je 0x43d7ca
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x43d7e3
test byte [esi + 0x15], 4
je 0x43d7de
mov eax, esi
call fcn.0042d4f0
mov esi, dword [esi + 8]
jmp 0x43d7fb
cmp al, 2
jne 0x43d7f0
call fcn.00401000
mov esi, eax
jmp 0x43d7fb
mov esi, 0x4a44fd
jmp 0x43d7fb
mov ebx, dword [esp + 0x1c]
cmp byte [esp + 0x17], 0
je 0x43d820
push 0
push 0xffffffffffffffff
push 1
push 0x497b48
push 0x497528
push esi
xor eax, eax
or ecx, 0xffffffff
call fcn.0046cee0
add esp, 0x18
cmp byte [esp + 0x18], 0
je 0x43d836
mov esi, dword [esp + 0x20]
mov eax, ebx
call fcn.00412a50
mov dword [eax], esi
jmp 0x43d876
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x43d840
mov eax, ebx
sub esi, ecx
call fcn.00412a50
mov dword [eax], esi
jmp 0x43d876
mov eax, dword [esp + 0x1c]
mov byte [esi], 0
call fcn.00412a50
cmp byte [esp + 0x18], 0
mov dword [eax], 0
jne 0x43d876
push esi
call fcn.0047f118
add esp, 4
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push ecx
call fcn.00412b80
test eax, eax
jne 0x43d894
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov ecx, dword [esp + 0x34]
test ebp, ebp
sete dl
movzx eax, dl
push eax
push ecx
call fcn.0042cb00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
push 0x49281e
push ebx
mov ecx, dword [esp + 0x3c]
push 0x493ec0
call fcn.0042ca10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4