Function at 0x470000
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x4c
mov eax, dword [0x4d1698]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
push edi
xor esi, esi
push 0x4aeee4
push 0x4da9b8
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
call fcn.0048d0d9
add esp, 8
cmp eax, esi
je 0x47007c
lea ecx, [esp + 0x10]
push ecx
mov esi, eax
lea ebx, [esp + 0x18]
call fcn.0043fbe0
mov ebp, eax
xor edi, edi
add esp, 4
mov dword [esp + 0x14], ebp
cmp ebp, edi
je 0x47007c
push ebp
call fcn.0048d4eb
add esp, 4
push ebp
push 0x10
lea edx, [esp + 0x3c]
push 1
push edx
mov ebx, eax
call fcn.0048d33a
add esp, 0x10
cmp eax, 0x10
je 0x470091
push ebp
call fcn.0048d6c3
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0048c97b
add esp, 0x4c
ret
push edi
push 0x4aeeef
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], edi
mov byte [esp + 0x20], 0
call fcn.00403d10
movzx eax, byte [esp + edi + 0x34]
cmp al, 0x20
je 0x4700cc
push eax
push 1
lea esi, [esp + 0x20]
call fcn.004042a0
inc edi
cmp edi, 0x10
jl 0x4700b1
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x18]
jae 0x4700db
lea eax, [esp + 0x18]
push eax
call fcn.0048efae
add esp, 4
test eax, eax
jle 0x4700f7
lea ecx, [edi + ebx + 1]
mov dword [0x4da944], ecx
mov dword [0x4da948], eax
lea esi, [eax + edi + 1]
push 0
lea edx, [esi + ebx]
push edx
push ebp
call fcn.0048d5da
add esp, 0xc
test eax, eax
je 0x470144
push ebp
call fcn.0048d6c3
add esp, 4
cmp dword [esp + 0x2c], 0x10
jb 0x47007c
mov eax, dword [esp + 0x18]
push eax
call fcn.0048cd91
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0048c97b
add esp, 0x4c
ret
mov edi, dword [esp + 0x10]
sub edi, esi
lea eax, [edi + 4]
call fcn.0043e6f0
test eax, eax
je 0x47016b
push edi
lea ebx, [eax + 4]
push 0
push ebx
mov dword [eax], edi
call fcn.004953d0
add esp, 0xc
test ebx, ebx
jne 0x47017b
push ebp
call fcn.0048d6c3
add esp, 4
push 0
call fcn.00490ed3
lea eax, [edi + 4]
call fcn.0043e6f0
test eax, eax
je 0x4701a0
push edi
lea ebp, [eax + 4]
push 0
push ebp
mov dword [eax], edi
call fcn.004953d0
add esp, 0xc
test ebp, ebp
jne 0x4701cc
mov ebp, dword [esp + 0x14]
push ebp
call fcn.0048d6c3
mov ecx, dword [ebx - 4]
add ebx, 0xfffffffc
add esp, 4
add ecx, 4
push ecx
push 0
push ebx
call fcn.004953d0
add esp, 0xc
mov eax, ebx
call fcn.0043e9d0
push 0
call fcn.00490ed3
mov esi, dword [esp + 0x14]
push esi
push edi
push 1
push ebx
call fcn.0048d33a
add esp, 0x10
push esi
cmp eax, edi
je 0x470229
call fcn.0048d6c3
mov edx, dword [ebx - 4]
add ebx, 0xfffffffc
add esp, 4
add edx, 4
push edx
push 0
push ebx
call fcn.004953d0
add esp, 0xc
mov eax, ebx
call fcn.0043e9d0
mov eax, dword [ebp - 4]
add ebp, 0xfffffffc
add eax, 4
push eax
push 0
push ebp
call fcn.004953d0
add esp, 0xc
mov eax, ebp
call fcn.0043e9d0
push 0
call fcn.00490ed3
call fcn.0048d6c3
add esp, 4
call fcn.0043f750
mov esi, eax
test esi, esi
jne 0x470254
push ebx
call fcn.0043f830
add esp, 4
push ebp
call fcn.0043f830
add esp, 4
push esi
call fcn.00490ed3
push ebp
push ebx
mov ecx, esi
call fcn.0047d340
push ebx
mov edi, eax
call fcn.0043f830
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
add esp, 0xc
mov dword [esi + 0x1c], eax
push esi
mov byte [esi + 0x20], al
call fcn.0048d7f0
add esp, 4
cmp edi, 0xffffffff
jne 0x4702b5
mov ecx, dword [ebp - 4]
add ebp, 0xfffffffc
add ecx, 4
push ecx
push 0
push ebp
call fcn.004953d0
add esp, 0xc
mov eax, ebp
call fcn.0043e9d0
push 0
call fcn.00490ed3
mov eax, ebp
mov esi, ebp
mov edx, ebp
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4702c0
sub eax, edi
mov edi, eax
xor eax, eax
test edi, edi
jle 0x470302
cmp byte [eax + edx], 0x3d
jne 0x4702e4
cmp byte [eax + edx + 1], 0
lea ecx, [eax + edx + 1]
je 0x4702e4
mov edx, ecx
cmp byte [eax + ebp], 0x20
jne 0x4702f1
cmp byte [eax + ebp + 1], 0
jne 0x4702f8
inc eax
cmp eax, edi
jl 0x4702d1
jmp 0x470302
lea eax, [eax + ebp + 1]
mov dword [esp + 0x10], eax
mov esi, eax
push edx
call fcn.0048efc4
add esp, 4
mov dword [0x4da96c], eax
cmp esi, ebp
je 0x470292
push 6
push str.printf
push esi
call fcn.0048d9f8
add esp, 0xc
test eax, eax
je 0x47033b
mov edx, dword [ebp - 4]
add ebp, 0xfffffffc
add edx, 4
push edx
jmp 0x47029c
push 0
add esi, 6
push 0x4aeeef
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], esi
call fcn.00403d10
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x470357
sub eax, edx
mov ebx, eax
xor edi, edi
test ebx, ebx
jle 0x470385
movzx eax, byte [esi + edi]
test al, al
je 0x470385
push eax
push 1
lea esi, [esp + 0x20]
call fcn.004042a0
mov esi, dword [esp + 0x10]
inc edi
cmp edi, ebx
jl 0x470368
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x18]
lea edi, [esi + edi + 1]
jae 0x470398
lea eax, [esp + 0x18]
push eax
call fcn.0048efae
mov ebx, eax
add esp, 4
cmp ebx, 1
jl 0x470206
lea eax, [ebx + 4]
call fcn.0043e6f0
test eax, eax
je 0x4703cd
push ebx
lea esi, [eax + 4]
push 0
push esi
mov dword [eax], ebx
call fcn.004953d0
add esp, 0xc
test esi, esi
jne 0x470416
mov ecx, dword [ebp - 4]
add ebp, 0xfffffffc
add ecx, 4
push ecx
push 0
push ebp
call fcn.004953d0
add esp, 0xc
mov eax, ebp
call fcn.0043e9d0
cmp dword [esp + 0x2c], 0x10
jb 0x47007c
mov edx, dword [esp + 0x18]
push edx
call fcn.0048cd91
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0048c97b
add esp, 0x4c
ret
push ebx
push edi
push esi
call fcn.004915e0
mov eax, dword [ebp - 4]
lea edi, [ebp - 4]
add esp, 0xc
add eax, 4
push eax
push 0
push edi
call fcn.004953d0
add esp, 0xc
mov eax, edi
call fcn.0043e9d0
push ebx
push esi
mov ecx, 0x4d5664
call fcn.00403d10
mov ecx, dword [esi - 4]
lea edi, [esi - 4]
add ecx, 4
push ecx
push 0
push edi
call fcn.004953d0
add esp, 0xc
mov eax, edi
call fcn.0043e9d0
cmp dword [esp + 0x2c], 0x10
mov byte [0x4da959], 1
jb 0x470480
mov edx, dword [esp + 0x18]
push edx
call fcn.0048cd91
add esp, 4
mov ecx, dword [esp + 0x54]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048c97b
add esp, 0x4c
ret