Function at 0x47294f
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x56cdb8
call fcn.00524444
mov eax, 0x9d0c
call fcn.00524e70
push ebx
push esi
lea eax, [ebp - 0x4c]
push edi
push eax
xor ebx, ebx
push dword [ebp + 8]
mov dword [ebp - 0x24], ebx
call fcn.00529ef6
pop ecx
test eax, eax
pop ecx
je 0x4729c4
push dword [ebp + 8]
lea ecx, [ebp + 0x10]
call fcn.0053ebbd
push eax
lea eax, [ebp + 8]
push 0x5c4d18
push eax
mov dword [ebp - 4], ebx
call fcn.0053ee58
mov eax, dword [eax]
push ebx
push ebx
push eax
mov byte [ebp - 4], 1
call fcn.0054ed65
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.0053eb4f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.0053eb4f
jmp 0x472e29
mov eax, dword [ebp - 0x38]
add eax, 6
push eax
call fcn.005298df
mov edi, eax
pop ecx
cmp edi, ebx
mov dword [ebp - 0x20], edi
jne 0x4729e6
push ebx
push ebx
push 0x5c4cfc
call fcn.0054ed65
lea eax, [ebp - 0xd4]
push 0x40
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov esi, eax
cmp esi, ebx
jge 0x472a51
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 8]
lea ecx, [ebp + 0x10]
call fcn.0053ebbd
push eax
lea eax, [ebp + 8]
push 0x5c4d18
push eax
mov dword [ebp - 4], 2
call fcn.0053ee58
mov eax, dword [eax]
push ebx
push ebx
push eax
mov byte [ebp - 4], 3
call fcn.0054ed65
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0053eb4f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.0053eb4f
push edi
jmp 0x472c71
lea eax, [ebp - 0x24]
push ebx
push eax
push dword [ebp - 0x38]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x38]
je 0x472aad
push dword [ebp + 8]
lea ecx, [ebp + 0x10]
call fcn.0053ebbd
push eax
lea eax, [ebp + 8]
push 0x5c4ce8
push eax
mov dword [ebp - 4], 4
call fcn.0053ee58
mov eax, dword [eax]
push ebx
push ebx
push eax
mov byte [ebp - 4], 5
call fcn.0054ed65
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.0053eb4f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
jmp 0x472a46
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [ebp - 0x38]
mov byte [eax + edi], bl
push 0x28
mov dword [ebp - 0x10], ebx
lea esi, [eax + edi]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x14], 0xa
mov byte [eax + edi + 1], bl
call fcn.005298df
cmp eax, ebx
pop ecx
mov dword [ebp - 0x18], eax
je 0x472bed
cmp dword [ebp + 0x10], ebx
je 0x472b86
cmp word [esi - 2], 0xa
je 0x472b03
mov word [esi], 0xd
add esi, 2
mov word [esi], 0xa
inc esi
inc esi
mov word [esi], bx
mov cx, word [edi]
cmp dword [ebp + 0x14], ebx
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], cx
mov word [ebp - 0x26], bx
jne 0x472b1c
add edi, 2
mov dword [ebp - 0x18], edi
dec esi
mov edi, eax
dec esi
cmp esi, dword [ebp - 0x18]
je 0x472b69
mov dword [ebp - 0x1c], 0x28
cmp word [esi], 0xa
jne 0x472b62
mov eax, dword [ebp - 0x10]
mov word [esi], bx
cmp eax, dword [ebp - 0x14]
jne 0x472b56
add dword [ebp - 0x1c], 0x28
add dword [ebp - 0x14], 0xa
push dword [ebp - 0x1c]
push edi
call fcn.005295b0
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
je 0x472b75
mov ecx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
lea eax, [esi + 2]
mov dword [edi + ecx*4], eax
dec esi
dec esi
cmp esi, dword [ebp - 0x18]
jne 0x472b2c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], edi
mov dword [edi], eax
mov eax, edi
jmp 0x472be1
push ebx
push ebx
push 0x5c4cfc
call fcn.0054ed65
jmp 0x472c6e
cmp byte [esi - 1], 0xa
je 0x472b96
mov byte [esi], 0xd
inc esi
mov byte [esi], 0xa
inc esi
mov byte [esi], bl
dec esi
cmp esi, edi
je 0x472bdc
mov dword [ebp - 0x1c], 0x28
cmp byte [esi], 0xa
jne 0x472bd7
mov ecx, dword [ebp - 0x10]
mov byte [esi], bl
cmp ecx, dword [ebp - 0x14]
jne 0x472bcb
add dword [ebp - 0x1c], 0x28
add dword [ebp - 0x14], 0xa
push dword [ebp - 0x1c]
push eax
call fcn.005295b0
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x18], eax
je 0x472bed
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
lea ecx, [esi + 1]
mov dword [eax + edx*4], ecx
dec esi
cmp esi, edi
jne 0x472ba2
mov dword [eax], edi
mov edi, dword [ebp + 8]
cmp dword [ebp + 0x10], ebx
je 0x472bfe
push 0x4727fe
jmp 0x472c03
push ebx
push ebx
push 0x5c4cfc
call fcn.0054ed65
jmp 0x472a4b
push 0x4726d4
push 4
push dword [ebp - 0x10]
push eax
call fcn.00527e3e
add esp, 0x10
push 0x5c4ce4
push dword [ebp + 8]
call fcn.005268ed
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x14], eax
jne 0x472c7c
push dword [ebp + 8]
lea ecx, [ebp + 0x10]
call fcn.0053ebbd
push eax
lea eax, [ebp + 8]
push 0x5c4d18
push eax
mov dword [ebp - 4], 6
call fcn.0053ee58
mov eax, dword [eax]
push ebx
push ebx
push eax
mov byte [ebp - 4], 7
call fcn.0054ed65
lea ecx, [ebp + 8]
mov byte [ebp - 4], 6
call fcn.0053eb4f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.0053eb4f
push dword [ebp - 0x20]
call fcn.0052705c
pop ecx
jmp 0x472e29
cmp dword [ebp + 0x10], ebx
je 0x472d28
cmp dword [ebp + 0x14], ebx
jne 0x472c96
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00529563
pop ecx
pop ecx
cmp dword [ebp + 0xc], ebx
je 0x472cf8
cmp dword [ebp - 0x10], ebx
mov word [ebp - 0x9d18], bx
jle 0x472e06
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x10]
sub edi, esi
push dword [esi]
lea eax, [ebp - 0x9d18]
push eax
call fcn.0052b230
pop ecx
test eax, eax
pop ecx
je 0x472ced
push dword [esi]
lea eax, [ebp - 0x9d18]
push eax
call fcn.005244aa
push dword [ebp - 0x14]
push dword [edi + esi]
call fcn.00529563
push dword [ebp - 0x14]
push 0xa
call fcn.00529440
add esp, 0x18
add esi, 4
dec ebx
jne 0x472cb3
jmp 0x472e06
cmp dword [ebp - 0x10], ebx
jle 0x472e06
mov esi, edi
mov edi, dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [esi]
call fcn.00529563
push dword [ebp - 0x14]
push 0xa
call fcn.00529440
add esp, 0x10
add esi, 4
dec edi
jne 0x472d06
jmp 0x472e06
cmp dword [ebp + 0xc], ebx
je 0x472dde
cmp dword [ebp - 0x10], ebx
mov byte [ebp - 0x4ef8], bl
jle 0x472e06
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
mov dword [ebp + 8], eax
mov edi, 0x4e20
cmp dword [0x628b4c], ebx
je 0x472d72
push dword [esi]
lea eax, [ebp - 0x4ef8]
push eax
call fcn.00528430
pop ecx
test eax, eax
pop ecx
jne 0x472d86
cmp dword [0x628b4c], ebx
jne 0x472dd0
push dword [esi]
lea eax, [ebp - 0x4ef8]
push eax
call fcn.00526f30
pop ecx
test eax, eax
pop ecx
je 0x472dd0
push dword [esi]
call fcn.00525390
cmp eax, edi
pop ecx
mov dword [ebp + 0x10], eax
jle 0x472d97
mov eax, edi
push eax
lea eax, [ebp - 0x4ef8]
push dword [esi]
push eax
call fcn.005244d0
mov eax, dword [ebp + 0x10]
add esp, 0xc
cmp eax, edi
jle 0x472db2
mov eax, edi
push dword [ebp - 0x14]
mov byte [ebp + eax - 0x4ef8], bl
push dword [esi]
call fcn.005293f2
push dword [ebp - 0x14]
push 0xa
call fcn.005293e2
add esp, 0x10
add esi, 4
dec dword [ebp + 8]
jne 0x472d4e
jmp 0x472e06
cmp dword [ebp - 0x10], ebx
jle 0x472e06
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [esi]
call fcn.005293f2
push dword [ebp - 0x14]
push 0xa
call fcn.005293e2
add esp, 0x10
add esi, 4
dec edi
jne 0x472de9
push dword [ebp - 0x14]
call fcn.00526bb9
push dword [ebp - 0x14]
call fcn.00526b3c
push dword [ebp - 0x18]
call fcn.0052705c
push dword [ebp - 0x20]
call fcn.0052705c
add esp, 0x10
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret