Function at 0x43d600
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [0x4a2bd0]
push esi
push edi
push 1
xor ebx, ebx
push ebx
push 0xffffffffffffffff
mov esi, ecx
push ebx
mov ecx, ebp
mov dword [esp + 0x2c], ebp
call fcn.0046ede0
mov eax, dword [0x49f430]
mov eax, dword [eax + 0xd4]
and eax, 0x7fffffff
mov byte [esp + 0x17], bl
mov byte [esp + 0x18], bl
mov dword [esp + 0x28], 0xfffffffd
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], eax
lea ebx, [ebx]
mov eax, esi
mov cl, byte [eax]
cmp cl, 0x20
je 0x43d65e
cmp cl, 9
jne 0x43d661
inc eax
jmp 0x43d652
cmp byte [eax], 0x2a
jne 0x43d7dd
movzx edi, byte [eax + 1]
lea esi, [eax + 1]
test edi, 0xffffff80
jne 0x43d68b
push 2
push edi
call fcn.0047ff4e
add esp, 8
cmp eax, ebx
je 0x43d68b
and edi, 0xffffffdf
mov eax, edi
movsx eax, al
add eax, 0xffffffbd
cmp eax, 0x11
ja case.0x43d6a3.68
movzx ecx, byte [eax + 0x43dbd4]
jmp dword [ecx*4 + 0x43dbc0]
mov byte [esp + 0x18], 1
jmp case.0x43d6a3.68
lea edi, [esi + 1]
mov eax, edi
call fcn.0040c650
movzx edx, al
neg edx
sbb edx, edx
and edx, 6
add edx, 0xa
push edx
push ebx
push edi
call fcn.0048078a
add esp, 0xc
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
cmp edx, ebx
ja 0x43d6e7
cmp eax, 0xffffffff
jbe 0x43d6f3
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x2c], ebx
mov dl, byte [esi]
test dl, dl
je 0x43d71b
lea esp, [esp]
mov ecx, 0x49401c
mov al, 0x20
cmp dl, al
je 0x43d751
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x43d707
mov dl, byte [esi + 1]
inc esi
test dl, dl
jne 0x43d700
mov eax, dword [0x49f430]
mov dword [eax + 0x30], 0x57
cmp byte [eax + 0xe0], bl
jne 0x43dba1
mov ecx, dword [0x4a3434]
push ecx
or eax, 0xffffffff
mov ecx, 0x493f08
call fcn.004011f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
dec esi
jmp case.0x43d6a3.68
lea eax, [esi + 1]
push eax
call fcn.0047ff96
mov dl, byte [esi]
add esp, 4
mov dword [esp + 0x24], eax
test dl, dl
je 0x43d78b
lea ebx, [ebx]
mov ecx, 0x49401c
mov al, 0x20
cmp dl, al
je 0x43d751
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x43d777
mov dl, byte [esi + 1]
inc esi
test dl, dl
jne 0x43d770
mov eax, dword [0x49f430]
mov dword [eax + 0x30], 0x57
cmp byte [eax + 0xe0], bl
jne 0x43dba1
mov edx, dword [0x4a3434]
push edx
or eax, 0xffffffff
mov ecx, 0x493f08
call fcn.004011f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov byte [esp + 0x17], 1
cmp byte [esi], bl
je 0x43d650
inc esi
cmp byte [esi], bl
je 0x43d650
inc esi
jmp 0x43d650
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 0x43d83d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x49f430]
cmp byte [ecx + 0xe0], 0
mov dword [ecx + 0x30], eax
jne 0x43d831
mov eax, dword [0x4a3434]
push eax
or eax, ebx
mov ecx, 0x493f08
call fcn.004011f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
push 0x4927e9
push 0
jmp 0x43dba7
cmp byte [esp + 0x18], 0
je 0x43d86b
mov al, byte [ebp + 0x17]
test al, al
jne 0x43d851
mov ecx, dword [ebp + 0xc]
mov al, byte [ecx + 0x17]
cmp al, 2
jne 0x43d86b
mov edx, dword [esp + 0x34]
push edx
mov edi, ebx
call fcn.0043e6b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov ecx, ebx
call fcn.0046d2e0
mov edi, eax
and eax, edx
cmp eax, 0xffffffff
jne 0x43d8a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x49f430]
push ebx
mov dword [ecx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x34]
push edx
call fcn.0042eec0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov eax, dword [esp + 0x2c]
cmp edx, eax
jb 0x43d8bb
ja 0x43d8b5
cmp edi, dword [esp + 0x28]
jbe 0x43d8bb
mov edi, dword [esp + 0x28]
mov edx, eax
mov eax, edi
or eax, edx
jne 0x43d8f3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x49f430]
mov edx, dword [0x4a3434]
mov dword [ecx + 0x30], 0
push edx
or eax, 0xffffffff
mov ecx, 0x492860
call fcn.004011f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
cmp byte [esp + 0x18], 0
je 0x43d9db
push 0
push 1
push edi
push 0
mov ecx, ebp
call fcn.0046ede0
cmp eax, 1
jne 0x43d9f1
cmp byte [ebp + 0x17], 0
jne 0x43d920
mov esi, dword [ebp + 0xc]
jmp 0x43d922
mov esi, ebp
test byte [esi + 0x15], 8
je 0x43d92f
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x43d94b
test byte [esi + 0x15], 4
je 0x43d943
mov eax, esi
call fcn.0042d510
mov esi, dword [esi + 8]
jmp 0x43d9e9
cmp al, 2
jne 0x43d959
call fcn.00401000
jmp 0x43d9e7
mov esi, 0x4a453d
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 [0x49f430]
push ebx
mov dword [edx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x43db44
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 0x43daee
mov eax, dword [esp + 0x20]
cmp eax, 3
jb 0x43da22
cmp byte [esi], 0xef
jne 0x43da22
cmp byte [esi + 1], 0xbb
jne 0x43da22
cmp byte [esi + 2], 0xbf
jne 0x43da22
lea ecx, [eax - 3]
mov eax, dword [esp + 0x1c]
push 0xfde9
lea edx, [esi + 3]
push eax
call fcn.0046f880
jmp 0x43da51
lea eax, [edi + 2]
push eax
call fcn.0047ebe9
add esp, 4
mov esi, eax
test esi, esi
jne 0x43d95e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x18], 0
jne 0x43db78
mov ecx, dword [esp + 0x34]
push 0x4927e9
push 0
push str.Out_of_memory.
call fcn.0042cd00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
cmp eax, 2
jb 0x43da6f
cmp byte [esi], 0xff
jne 0x43da6f
cmp byte [esi + 1], 0xfe
jne 0x43da6f
mov dl, 1
mov ecx, esi
mov edi, eax
test dl, dl
je 0x43da42
lea ecx, [esi + 2]
lea edi, [eax - 2]
mov edx, dword [esp + 0x1c]
push ecx
mov ebx, edi
shr ebx, 1
push edx
call fcn.0046f950
test eax, eax
jne 0x43da57
xor ebp, ebp
push esi
call fcn.0047ea48
mov ebx, dword [esp + 0x20]
add esp, 4
cmp byte [ebx + 0x17], 0
jne 0x43dab2
mov esi, dword [ebx + 0xc]
jmp 0x43dab4
mov edi, dword [esp + 0x24]
xor dl, dl
cmp edi, 0x4b0
je 0x43da34
test edi, edi
je 0x43daa2
call dword [sym.imp.KERNEL32.dll_GetACP]
cmp edi, eax
je 0x43da9e
mov ecx, dword [esp + 0x1c]
push edi
push ecx
mov ecx, dword [esp + 0x28]
mov edx, esi
call fcn.0046f880
jmp 0x43da51
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
push eax
mov edi, esi
mov eax, ebx
call fcn.0046f430
jmp 0x43da64
mov esi, ebx
test byte [esi + 0x15], 8
je 0x43dac1
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x43dada
test byte [esi + 0x15], 4
je 0x43dad5
mov eax, esi
call fcn.0042d510
mov esi, dword [esi + 8]
jmp 0x43daf2
cmp al, 2
jne 0x43dae7
call fcn.00401000
mov esi, eax
jmp 0x43daf2
mov esi, 0x4a453d
jmp 0x43daf2
mov ebx, dword [esp + 0x1c]
cmp byte [esp + 0x17], 0
je 0x43db17
push 0
push 0xffffffffffffffff
push 1
push 0x497b28
push 0x497508
push esi
xor eax, eax
or ecx, 0xffffffff
call fcn.0046cad0
add esp, 0x18
cmp byte [esp + 0x18], 0
je 0x43db2d
mov esi, dword [esp + 0x20]
mov eax, ebx
call fcn.00412820
mov dword [eax], esi
jmp 0x43db66
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x43db30
mov eax, ebx
sub esi, ecx
call fcn.00412820
mov dword [eax], esi
jmp 0x43db66
mov eax, dword [esp + 0x1c]
mov byte [esi], 0
call fcn.00412820
cmp byte [esp + 0x18], 0
mov dword [eax], 0
jne 0x43db66
push esi
call fcn.0047ea48
add esp, 4
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x20]
call fcn.00412950
test eax, eax
jne 0x43db84
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov eax, dword [esp + 0x34]
test ebp, ebp
sete cl
movzx edx, cl
push edx
push eax
call fcn.0042cad0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
push 0x4927e9
push ebx
mov ecx, dword [esp + 0x3c]
push 0x493f08
call fcn.0042c9e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4