Function at 0x45469e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 0xa
push ebx
push esi
push edi
mov esi, ecx
jge 0x4548b6
push 1
lea eax, [esi + 0x39c4]
pop ebx
push 0x16800
push 0
push eax
mov dword [esi + 0x1a5c4], ebx
call fcn.0045bef0
lea edi, [esi + 0x1a1c4]
push 0x400
push 0xff
push edi
call fcn.0045bef0
add esp, 0x18
xor eax, eax
mov dword [ebp + 8], eax
mov byte [ebp + 0xf], bl
push eax
push 0x80
push 3
push eax
push ebx
push 0x80000000
push str.common.txt
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4549e5
and dword [ebp - 0xc], 0
push 0
push ebx
call dword [sym.imp.kernel32.dll_GetFileSize]
test eax, eax
mov dword [ebp - 8], eax
je 0x454761
push eax
call fcn.0045c040
pop ecx
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push 0
push ecx
mov dword [ebp - 0xc], eax
push dword [ebp - 8]
push eax
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x454761
push dword [ebp - 0xc]
call fcn.0045b3e0
pop ecx
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x4549e5
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
xor ecx, ecx
xor eax, eax
cmp dword [ebp - 8], ecx
mov dword [ebp - 0x10], eax
jle 0x454812
mov edx, 0xfffe5e3c
sub edx, esi
mov ebx, dword [ebp - 0xc]
mov al, byte [eax + ebx]
cmp al, 0xa
je 0x4547de
cmp al, 0xd
je 0x454802
cmp byte [ebp + 0xf], 0
je 0x4547cd
cmp al, 0x59
jne 0x45479c
mov byte [edi], 1
jmp 0x454802
cmp al, 0x52
jne 0x4547a5
mov byte [edi], 2
jmp 0x454802
cmp al, 0x42
jne 0x4547ae
mov byte [edi], 3
jmp 0x454802
cmp al, 0x47
jne 0x4547b7
mov byte [edi], 4
jmp 0x454802
cmp al, 0x44
jne 0x4547c0
and byte [edi], 0
jmp 0x454802
cmp al, 0x57
jne 0x4547c9
or byte [edi], 0xff
jmp 0x454802
and byte [ebp + 0xf], 0
mov ebx, dword [ebp + 8]
add ebx, ecx
inc dword [ebp + 8]
mov byte [ebx + esi + 0x39c4], al
jmp 0x454802
inc edi
add ecx, 0x5a
lea eax, [edx + edi]
cmp eax, 0x3fe
jl 0x4547f4
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jmp 0x454802
inc dword [esi + 0x1a5c4]
and dword [ebp + 8], 0
mov byte [ebp + 0xf], 1
mov eax, dword [ebp - 0x10]
inc eax
cmp eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jl 0x45477f
mov ebx, dword [esi + 0x1a5c4]
xor edi, edi
test ebx, ebx
mov dword [ebp + 8], edi
jle 0x454881
lea eax, [esi + 0x39c4]
mov dword [ebp + 0xc], eax
push str._yellow_notice_
push dword [ebp + 0xc]
call fcn.0045b5e0
pop ecx
test eax, eax
pop ecx
jne 0x454853
lea eax, [edi + 1]
mov dword [ebp + 8], 1
mov dword [esi + 0x1a5c8], eax
mov dword [esi + 0x1a5c4], edi
push 0x4787cc
push dword [ebp + 0xc]
call fcn.0045b5e0
pop ecx
test eax, eax
pop ecx
je 0x45488f
add dword [ebp + 0xc], 0x5a
inc edi
cmp edi, ebx
jl 0x45482a
cmp dword [ebp + 8], 0
je 0x454881
sub edi, dword [esi + 0x1a5c8]
mov dword [esi + 0x1a5cc], edi
push dword [ebp - 0xc]
call fcn.0045b3e0
pop ecx
jmp 0x4549e5
cmp dword [ebp + 8], 0
je 0x4548a3
mov eax, edi
sub eax, dword [esi + 0x1a5c4]
mov dword [esi + 0x1a5cc], eax
lea eax, [edi + 1]
sub ebx, edi
mov dword [esi + 0x1a5d0], eax
mov dword [esi + 0x1a5d4], ebx
jmp 0x454881
lea ebx, [esi + 0x39c4]
push 0x16800
push 0
push ebx
mov dword [esi + 0x1a5c4], 1
call fcn.0045bef0
lea edi, [esi + 0x1a1c4]
push 0x400
push 0xff
push edi
call fcn.0045bef0
xor eax, eax
add esp, 0x18
xor ecx, ecx
cmp dword [ebp + 0xc], eax
mov byte [ebp - 1], 1
mov dword [ebp - 8], eax
jle 0x45499f
mov dword [ebp - 0xc], 0xfffe5e3c
mov dword [ebp - 0x10], eax
sub dword [ebp - 0xc], esi
mov edx, dword [ebp + 8]
mov al, byte [eax + edx]
cmp al, 0xa
je 0x45496a
cmp al, 0xd
je 0x45498f
cmp byte [ebp - 1], 0
je 0x45495b
cmp al, 0x59
jne 0x45492a
mov byte [edi], 1
jmp 0x45498f
cmp al, 0x52
jne 0x454933
mov byte [edi], 2
jmp 0x45498f
cmp al, 0x42
jne 0x45493c
mov byte [edi], 3
jmp 0x45498f
cmp al, 0x47
jne 0x454945
mov byte [edi], 4
jmp 0x45498f
cmp al, 0x44
jne 0x45494e
and byte [edi], 0
jmp 0x45498f
cmp al, 0x57
jne 0x454957
or byte [edi], 0xff
jmp 0x45498f
and byte [ebp - 1], 0
mov edx, dword [ebp - 0x10]
add edx, ecx
inc ecx
mov byte [edx + esi + 0x39c4], al
jmp 0x45498f
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x10], 0x5a
inc edi
add eax, edi
cmp eax, 0x3fe
jl 0x454983
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
jmp 0x45498f
inc dword [esi + 0x1a5c4]
mov byte [ebp - 1], 1
xor ecx, ecx
mov eax, dword [ebp - 8]
inc eax
cmp eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
jl 0x45490d
xor edi, edi
cmp dword [esi + 0x1a5c4], edi
jle 0x4549e5
push str._yellow_notice_
push ebx
call fcn.0045b5e0
pop ecx
test eax, eax
pop ecx
je 0x4549c8
inc edi
add ebx, 0x5a
cmp edi, dword [esi + 0x1a5c4]
jl 0x4549a9
jmp 0x4549e5
lea eax, [edi + 1]
mov dword [esi + 0x1a5c8], eax
mov eax, dword [esi + 0x1a5c4]
sub eax, edi
mov dword [esi + 0x1a5c4], edi
mov dword [esi + 0x1a5cc], eax
pop edi
pop esi
pop ebx
leave
ret 8