Function at 0x473630
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1040
call fcn.005d1cf0
mov edi, dword [ebp + 0x10]
mov ebx, str.unreachable_code_kk
test edi, edi
je 0x4733ff
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x10], ecx
nop word cs:[eax + eax]
nop
push edi
push ebx
push dword [ebp + 8]
call fcn.006ace60
add esp, 0xc
mov esi, eax
test eax, eax
jns 0x473430
call sub.msvcrt.dll__errno
cmp dword [eax], 4
je 0x473410
jmp 0x473457
mov ecx, dword [ebp - 0x10]
mov eax, edi
add ecx, esi
sub eax, esi
mov dword [ebp - 0x14], ecx
jb 0x47360f
test esi, esi
je 0x473570
add ebx, esi
test eax, eax
mov edi, eax
jne 0x473401
jmp 0x473608
mov ebx, dword [0x714004]
test bl, 1
jne 0x473563
mov eax, dword [section..data]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1046]
push 0xffa
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x104c], 0x74697277
mov word [ebp - 0x1048], 0x65
mov dword [ebp - 0x4c], 5
call sub.msvcrt.dll__errno
mov dword [ebp - 0x48], eax
call sub.msvcrt.dll__errno
push dword [eax]
call sub.msvcrt.dll_strerror
add esp, 4
test eax, eax
je 0x4734e8
mov edi, eax
push eax
call sub.msvcrt.dll_strlen
add esp, 4
inc eax
lea ecx, [ebp - 0x2c]
push eax
push edi
push ecx
call fcn.004f8520
add esp, 0xc
xor eax, eax
cmp dword [ebp - 0x2c], 0
mov ecx, str.unreachable_code_kk
cmove eax, dword [ebp - 0x24]
cmove ecx, dword [ebp - 0x28]
jmp 0x4734f2
mov ecx, str._null_realpath
mov eax, 6
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x2c], 0x6b6fc0
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x1c], 0
lea edi, [ebp - 0x104c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x38], 0x46eb30
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x30], 0x46e710
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x20], 2
push eax
push 0x6b6bc0
push edi
call fcn.004fe110
add esp, 0xc
mov eax, dword [ebp - 0x4c]
inc eax
push eax
push edi
push 0
call dword [ebp - 0x10]
add esp, 0xc
test bl, 0x10
jne 0x47361b
mov eax, esi
add esp, 0x1040
pop esi
pop edi
pop ebx
pop ebp
ret
test eax, eax
je 0x473608
mov ebx, dword [0x714004]
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x14]
lea esi, [ebp - 0x44]
mov dword [ebp - 0x2c], 0x6b6efc
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x3c], edx
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x38], fcn.00509680
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], fcn.00509680
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], 2
test bl, 1
mov dword [ebp - 0x44], eax
jne 0x473608
mov esi, dword [section..data]
lea edi, [ebp - 0x104c]
push 0x1004
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
push 0x6b6bc0
push edi
call fcn.004fe110
add esp, 0xc
mov eax, dword [ebp - 0x4c]
inc eax
push eax
push edi
push 0
call esi
add esp, 0xc
test bl, 0x10
jne 0x47361b
mov ecx, dword [ebp - 0x14]
mov esi, ecx
jmp 0x473563
push 0x6b6f24
push edi
push esi
call fcn.00500680
push 1
call fcn.005b34a0
nop word cs:[eax + eax]
nop dword [eax]
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1040
call fcn.005d1cf0
mov edi, dword [ebp + 0x10]
mov ebx, str.unreachable_code_kk
test edi, edi
je 0x47364f
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x10], ecx
nop word cs:[eax + eax]
nop
push edi
push ebx
push dword [ebp + 8]
call fcn.006ace50
add esp, 0xc
mov esi, eax
test eax, eax
jns 0x473680
call sub.msvcrt.dll__errno
cmp dword [eax], 4
je 0x473660
jmp 0x4736a7
mov ecx, dword [ebp - 0x10]
mov eax, edi
add ecx, esi
sub eax, esi
mov dword [ebp - 0x14], ecx
jb 0x47385d
test esi, esi
je 0x4737be
add ebx, esi
test eax, eax
mov edi, eax
jne 0x473651
jmp 0x473856
mov ebx, dword [0x714004]
test bl, 1
jne 0x4737b1
mov eax, dword [section..data]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1047]
push 0xffb
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x104c], 0x64616572
mov byte [ebp - 0x1048], 0
mov dword [ebp - 0x4c], 4
call sub.msvcrt.dll__errno
mov dword [ebp - 0x48], eax
call sub.msvcrt.dll__errno
push dword [eax]
call sub.msvcrt.dll_strerror
add esp, 4
test eax, eax
je 0x473736
mov edi, eax
push eax
call sub.msvcrt.dll_strlen
add esp, 4
inc eax
lea ecx, [ebp - 0x2c]
push eax
push edi
push ecx
call fcn.004f8520
add esp, 0xc
xor eax, eax
cmp dword [ebp - 0x2c], 0
mov ecx, str.unreachable_code_kk
cmove eax, dword [ebp - 0x24]
cmove ecx, dword [ebp - 0x28]
jmp 0x473740
mov ecx, str._null_realpath
mov eax, 6
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x2c], 0x6b6fc0
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x1c], 0
lea edi, [ebp - 0x104c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x38], 0x46eb30
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x30], 0x46e710
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x20], 2
push eax
push 0x6b6bc0
push edi
call fcn.004fe110
add esp, 0xc
mov eax, dword [ebp - 0x4c]
inc eax
push eax
push edi
push 0
call dword [ebp - 0x10]
add esp, 0xc
test bl, 0x10
jne 0x473869
mov eax, esi
add esp, 0x1040
pop esi
pop edi
pop ebx
pop ebp
ret
test eax, eax
je 0x473856
mov ebx, dword [0x714004]
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x14]
lea esi, [ebp - 0x44]
mov dword [ebp - 0x2c], 0x6b6f4c
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x3c], edx
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x38], fcn.00509680
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], fcn.00509680
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], 2
test bl, 1
mov dword [ebp - 0x44], eax
jne 0x473856
mov esi, dword [section..data]
lea edi, [ebp - 0x104c]
push 0x1004
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
push 0x6b6bc0
push edi
call fcn.004fe110
add esp, 0xc
mov eax, dword [ebp - 0x4c]
inc eax
push eax
push edi
push 0
call esi
add esp, 0xc
test bl, 0x10
jne 0x473869
mov ecx, dword [ebp - 0x14]
mov esi, ecx
jmp 0x4737b1
push 0x6b6f34
push edi
push esi
call fcn.00500680
push 1
call fcn.005b34a0
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1070
call fcn.005d1cf0
mov ebx, dword [ebp + 8]
mov esi, 0xffffffff
test ebx, ebx
je 0x473a69
push ebx
call sub.msvcrt.dll_strlen
add esp, 4
mov edi, eax
lea eax, [ebp - 0x107c]
push edi
push ebx
push eax
call fcn.00500940
add esp, 0xc
cmp dword [ebp - 0x107c], 0
jne 0x473a69
mov eax, dword [ebp + 0x10]
inc edi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], edi
test eax, eax
je 0x473a76
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
sub esp, 0x14
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x24]
mov dword [esp + 4], ebx
mov dword [esp + 0x10], 0x6b6c84
mov dword [esp + 0xc], eax
mov dword [esp], ecx
call fcn.00472000
add esp, 0x14
movzx ecx, byte [ebp - 0x24]
cmp cl, 4
je 0x473a5c
mov edx, dword [0x714004]
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov byte [ebp - 0x10], cl
test dl, 1
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
jne 0x473a26
mov edi, dword [section..data]
mov dword [ebp - 0x1c], edx
push 0x1004
push 0
lea esi, [ebp - 0x107c]
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x50]
mov dword [ebp - 0x78], 0x6b6ec0
mov dword [ebp - 0x74], 2
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x44], 0x46e6f0
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 1
lea ebx, [ebp - 0x78]
push ebx
push 0x6b6bc0
push esi
call fcn.004fe110
add esp, 0xc
test al, al
jne 0x473a02
lea eax, [ebp - 0x18]
mov dword [ebp - 0x78], 2
mov dword [ebp - 0x70], 2
mov dword [ebp - 0x68], 0x20
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 4
mov dword [ebp - 0x48], 0x6b6ea0
mov dword [ebp - 0x44], 2
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x5c], 3
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], fcn.005a5fb0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 1
lea eax, [ebp - 0x48]
push eax
push 0x6b6bc0
lea eax, [ebp - 0x107c]
push eax
call fcn.004fe110
add esp, 0xc
mov eax, dword [ebp - 0x7c]
inc eax
push eax
lea eax, [ebp - 0x107c]
push eax
push 0
call edi
add esp, 0xc
test byte [ebp - 0x1c], 0x10
jne 0x473a84
movzx eax, byte [ebp - 0x18]
mov edi, dword [ebp - 0x14]
movzx ecx, byte [ebp - 0x10]
cmp al, 3
jne 0x473a5c
mov esi, dword [edi + 4]
mov ebx, dword [edi]
mov eax, dword [esi]
push ebx
call eax
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x473a4b
push dword [esi + 8]
push eax
push ebx
call fcn.004ed020
add esp, 0xc
push 4
push 0xc
push edi
call fcn.004ed020
add esp, 0xc
movzx ecx, byte [ebp - 0x10]
cmp cl, 4
mov esi, 0xffffffff
jne 0x473a69
mov esi, dword [ebp - 0x28]
mov eax, esi
add esp, 0x1070
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x6b6c2c
push 0
push 0
call fcn.004fac30
push 1
call fcn.005b34a0
add esp, 4
ud2