Function at 0x49e1b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 8]
test ecx, ecx
push edi
jne 0x49e210
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
push 0x63
push edi
push eax
mov eax, dword [esp + 0x24]
push esi
push edx
push eax
call fcn.0051c6f0
add esp, 0x18
cmp eax, 1
jne 0x49e5ed
mov ecx, dword [esi + 8]
cmp ecx, eax
je 0x49e5ed
cmp ecx, 3
je 0x49e5ed
push 6
push edi
push esi
call fcn.0048c510
add esp, 0xc
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esi + 0x40]
test eax, eax
je 0x49e232
cmp ecx, 2
jl 0x49e223
mov edx, dword [eax + 0x40]
test edx, edx
je 0x49e232
cmp ecx, 3
jne 0x49e23d
mov edx, dword [eax + 0x40]
mov esi, dword [edx + 0x40]
test esi, esi
jne 0x49e23d
pop edi
mov eax, 2
pop esi
add esp, 0xc
ret
mov esi, dword [eax + 0x1c]
mov edx, 1
cmp esi, edx
jne 0x49e266
cmp ecx, 2
jl 0x49e256
mov esi, dword [eax + 0x40]
cmp dword [esi + 0x1c], edx
jne 0x49e266
cmp ecx, 3
jne 0x49e26e
mov esi, dword [eax + 0x40]
mov esi, dword [esi + 0x40]
cmp dword [esi + 0x1c], edx
je 0x49e26e
pop edi
mov eax, edx
pop esi
add esp, 0xc
ret
mov edx, dword [eax + 0xc]
test edx, edx
push ebx
push ebp
jne 0x49e5b2
cmp ecx, 2
jl 0x49e28e
mov edx, dword [eax + 0x40]
mov esi, dword [edx + 0xc]
test esi, esi
jne 0x49e5b2
cmp ecx, 3
jne 0x49e2a4
mov edx, dword [eax + 0x40]
mov edx, dword [edx + 0x40]
mov esi, dword [edx + 0xc]
test esi, esi
jne 0x49e5b2
cmp dword [esp + 0x38], 1
jne 0x49e2cc
cmp ecx, 1
je 0x49e2cc
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
push 6
push eax
push ecx
call fcn.0048c510
add esp, 0xc
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xc
ret
mov edx, dword [eax]
push edx
call fcn.0051c3e0
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x38]
add esp, 4
test eax, eax
mov eax, dword [edi + 0x40]
mov ecx, dword [eax]
je 0x49e353
push ecx
call fcn.005d9a55
add esp, 4
test eax, eax
jne 0x49e323
mov eax, dword [0x6696c0]
xor ecx, ecx
test eax, eax
je 0x49e30b
mov eax, dword [eax + 0x570]
inc ecx
test eax, eax
jne 0x49e300
mov edx, dword [esp + 0x2c]
push ecx
push 0x5f4a40
push edx
call fcn.005d9929
add esp, 0xc
jmp 0x49e5b2
mov esi, dword [0x6696c0]
test esi, esi
je 0x49e374
lea ecx, [ecx]
dec eax
test eax, eax
jle 0x49e393
mov esi, dword [esi + 0x570]
test esi, esi
jne 0x49e330
push 6
push ebx
push edi
call fcn.0048c510
add esp, 0xc
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xc
ret
mov edx, ebx
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x49e355
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49e364
sub eax, edx
cmp eax, 0x100
jb 0x49e388
push 6
push ebx
push edi
call fcn.0048c510
add esp, 0xc
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xc
ret
push ebx
call fcn.0049cf00
add esp, 4
mov esi, eax
test esi, esi
je 0x49e374
xor eax, eax
mov dword [0x6696c4], esi
mov ecx, 0x41a
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x28]
cmp dword [ecx + 8], 2
mov dword [esp + 0x10], 0
mov ebp, 0x1036
jl 0x49e45b
mov edi, ecx
mov edx, dword [edi + 0x40]
mov eax, dword [edx + 0x40]
mov ecx, dword [eax]
push ecx
call fcn.005d9a55
mov ebp, eax
add esp, 4
cmp ebp, 1
jb 0x49e374
cmp dword [edi + 8], 3
jne 0x49e448
mov edx, dword [edi + 0x40]
mov eax, dword [edx + 0x40]
mov ecx, dword [eax + 0x40]
mov edx, dword [ecx]
cmp byte [edx], 0x26
jne 0x49e374
mov eax, edx
lea ecx, [eax + 1]
mov dword [esp + 0x10], ecx
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49e400
sub eax, dword [esp + 0x10]
cmp eax, 2
jb 0x49e374
mov eax, dword [esp + 0x3c]
push eax
push ebp
push edx
call fcn.004200a0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x49e441
mov ecx, dword [esp + 0x28]
push 8
push ebx
push ecx
call fcn.0048c510
add esp, 0xc
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xc
ret
mov ebx, dword [edi + 0xc]
add ebx, dword [edi]
jmp 0x49e45f
cmp ebp, 0x1036
mov edi, dword [esp + 0x10]
jbe 0x49e45f
mov ebp, 0x1036
jmp 0x49e45f
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x38], 1
jne 0x49e46b
mov ebp, 1
mov edx, dword [esi + 0x564]
xor eax, eax
push 1
push eax
push eax
push edx
mov dword [esi + 0x56c], eax
mov dword [esi + 0x568], eax
call fcn.0049d260
mov dword [esp + 0x20], eax
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
mov dword [esp + 0x14], edx
jne 0x49e4aa
mov dword [esi + 0x56c], 1
jmp 0x49e5b2
push 0
lea eax, [esp + 0x1c]
push eax
push ebp
mov dword [esp + 0x24], 0
mov ecx, dword [esi + 0x564]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x49e4db
mov dword [esi + 0x56c], 1
jmp 0x49e5b2
test edi, edi
je 0x49e4e6
mov edx, dword [esp + 0x18]
mov dword [edi + 8], edx
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x49e4fd
mov dword [esi + 0x568], 1
jmp 0x49e5b2
mov ecx, dword [esp + 0x38]
mov ebp, 1
cmp ecx, ebp
jne 0x49e525
movzx eax, byte [ebx]
mov ecx, dword [esp + 0x2c]
push eax
push 0x5f4a40
push ecx
call fcn.005d9929
add esp, 0xc
jmp 0x49e5b2
test edi, edi
je 0x49e53e
mov edx, dword [esp + 0x2c]
push eax
push 0x5f4a2c
push edx
call fcn.005d9929
add esp, 0xc
jmp 0x49e5b2
mov edi, dword [esp + 0x2c]
mov edx, edi
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x49e548
push 0xd
push edi
call fcn.005d9b20
add esp, 8
test eax, eax
je 0x49e564
mov byte [eax], 0
push 0xa
push edi
call fcn.005d9b20
add esp, 8
test eax, eax
je 0x49e576
mov byte [eax], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x564]
push 0
push eax
push ecx
push edx
call fcn.0049d260
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x49e5a0
mov dword [esi + 0x56c], ebp
jmp 0x49e5b2
push 0
push ebp
push 0
push 0
push 2
push esi
call fcn.0049d2c0
add esp, 0x18
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 8]
test eax, eax
jle 0x49e5df
mov edi, dword [esp + 0x24]
mov eax, dword [esi + 0x40]
mov ecx, dword [edi]
push eax
push ecx
call fcn.004e8a00
mov dword [edi], eax
mov ecx, dword [esi + 8]
add esp, 8
dec ecx
mov eax, ecx
test eax, eax
mov dword [esi + 8], ecx
jg 0x49e5c1
pop ebp
mov dword [esi + 8], 0
mov eax, 2
pop ebx
pop edi
pop esi
add esp, 0xc
ret