Function at 0x50de40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push dword [ebp + 8]
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x50e498
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp + 8]
push 0
push eax
push 4
lea eax, [ebp - 8]
push eax
push esi
call edi
test eax, eax
je 0x50deb5
cmp dword [ebp - 8], 0x6111101
jne 0x50deb5
push 0
lea eax, [ebp + 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push esi
call edi
test eax, eax
je 0x50deb5
movzx eax, byte [0x703bb8]
cmp dword [ebp - 0xc], eax
je 0x50dec5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
lea eax, [ebp + 8]
push eax
push 0x120
lea eax, [ebp - 0x12c]
push eax
push esi
call edi
push esi
test eax, eax
je 0x50deb6
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x77d
mov ecx, 0x6d0af0
call fcn.004637b0
mov edi, dword [ebp - 0x28]
mov esi, eax
push edi
push dword [ebp - 0x2c]
lea ecx, [esi + 0x93c]
push ecx
mov ecx, ebx
call fcn.0050dde0
test eax, eax
je 0x50df1a
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x2c]
call dword [eax + 0x24]
push 0x84d
mov ecx, 0x6d0af0
call fcn.004637b0
cmp dword [ebx + 0x1c], 0
mov esi, eax
je 0x50df59
mov eax, dword [ebp - 0x14]
xor ecx, ecx
cmp dword [esi + 0x24], eax
setne cl
test cl, 1
je 0x50df59
and eax, 1
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [0x6c1544]
and eax, 1
push eax
call fcn.004296b0
mov edi, dword [ebp - 0x18]
lea eax, [esi + 0x93c]
push edi
push dword [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.0050dde0
test eax, eax
je 0x50df7d
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x1c]
call dword [eax + 0x24]
push 0x1db
mov ecx, 0x6d0af0
call fcn.004637b0
cmp dword [ebx + 0x1c], 0
mov esi, eax
je 0x50dfb2
mov edx, dword [ebp - 0x124]
xor ecx, ecx
cmp dword [esi + 0x10], edx
setne cl
test cl, 1
je 0x50dfb2
mov eax, dword [esi]
and edx, 1
push edx
mov ecx, esi
call dword [eax + 8]
mov edi, dword [ebp - 0x128]
lea eax, [esi + 0x93c]
push edi
push dword [ebp - 0x12c]
mov ecx, ebx
push eax
call fcn.0050dde0
test eax, eax
je 0x50dfdf
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x12c]
call dword [eax + 0x24]
push 0xed
mov ecx, 0x6d0af0
call fcn.004637b0
cmp dword [ebx + 0x1c], 0
mov esi, eax
mov edx, dword [ebp - 0xe4]
je 0x50e01a
xor ecx, ecx
cmp dword [esi + 0x10], edx
setne cl
test cl, 1
je 0x50e01a
mov eax, dword [esi]
and edx, 1
push edx
mov ecx, esi
call dword [eax + 8]
mov edx, dword [ebp - 0xe4]
and edx, 2
mov ecx, esi
push edx
call fcn.004686b0
push 0x124
mov ecx, 0x6d0af0
call fcn.004637b0
cmp dword [ebx + 0x1c], 0
mov edi, eax
je 0x50e0e0
mov edx, dword [ebp - 0xd4]
xor ecx, ecx
cmp dword [edi + 0x10], edx
setne cl
test cl, 1
je 0x50e064
mov eax, dword [edi]
and edx, 1
push edx
mov ecx, edi
call dword [eax + 8]
mov edx, dword [ebp - 0xd4]
test dl, 4
je 0x50e06d
push 1
jmp 0x50e07d
test dl, 8
je 0x50e076
push 2
jmp 0x50e07d
test dl, 0x10
je 0x50e084
push 4
mov ecx, edi
call fcn.004e87a0
mov eax, dword [ebp - 0xd0]
mov ecx, edi
mov dword [ebp - 4], eax
call fcn.004e7e00
movzx esi, al
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x50e0c9
mov edi, edi
mov ecx, edi
push 0x40
push 0
cmp eax, esi
jle 0x50e0b7
push 0x132
call fcn.004e8510
inc esi
jmp 0x50e0c2
push 0x133
call fcn.004e8510
dec esi
mov eax, dword [ebp - 4]
cmp esi, eax
jne 0x50e0a0
test dword [ebp - 0xd4], 0x100
je 0x50e0e0
push 0
mov ecx, edi
call fcn.004e87f0
mov edi, edi
push 0x5d0
mov ecx, 0x6d0af0
call fcn.004637b0
test eax, eax
je 0x50e10d
cmp dword [ebx + 0x1c], 0
je 0x50e10d
mov ecx, dword [ebp - 0xd4]
mov edx, dword [eax]
and ecx, 0x100
push ecx
mov ecx, eax
call dword [edx + 8]
push 0xf3
mov ecx, 0x6d0af0
call fcn.004637b0
mov edi, dword [ebp - 0xc8]
mov esi, eax
push edi
push dword [ebp - 0xcc]
lea ecx, [esi + 0x93c]
push ecx
mov ecx, ebx
call fcn.0050dde0
test eax, eax
je 0x50e14b
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0xcc]
call dword [eax + 0x24]
cmp dword [ebx + 0x1c], 0
je 0x50e194
mov ecx, dword [ebp - 0xc4]
xor eax, eax
cmp dword [esi + 0x10], ecx
setne al
test al, 1
je 0x50e174
mov eax, dword [esi]
and ecx, 1
push ecx
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [ebp - 0xc4]
test cl, 4
je 0x50e17d
push 1
jmp 0x50e18d
test cl, 8
je 0x50e186
push 2
jmp 0x50e18d
test cl, 0x10
je 0x50e194
push 3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x68]
push 0x61
mov ecx, 0x6d0af0
call fcn.004637b0
cmp dword [ebx + 0x1c], 0
mov esi, eax
je 0x50e1c6
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
cmp dword [esi + 0x10], edx
setne cl
test cl, 1
je 0x50e1c6
mov eax, dword [esi]
and edx, 1
push edx
mov ecx, esi
call dword [eax + 8]
mov edi, dword [ebp - 0xb8]
lea eax, [esi + 0x93c]
push edi
push dword [ebp - 0xbc]
mov ecx, ebx
push eax
call fcn.0050dde0
test eax, eax
je 0x50e1f3
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0xbc]
call dword [eax + 0x24]
push 0xc7
mov ecx, 0x6d0af0
call fcn.004637b0
mov edi, dword [ebp - 0xa8]
mov esi, eax
push edi
push dword [ebp - 0xac]
lea ecx, [esi + 0x93c]
push ecx
mov ecx, ebx
call fcn.0050dde0
test eax, eax
je 0x50e231
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0xac]
call dword [eax + 0x24]
cmp dword [ebx + 0x1c], 0
je 0x50e2a1
mov ecx, dword [esi + 0x960]
mov eax, dword [ebp - 0xa0]
mov dword [ecx + 0x9e4], eax
xor eax, eax
mov ecx, dword [ebp - 0xa4]
cmp dword [esi + 0x10], ecx
setne al
test al, 1
je 0x50e26c
mov eax, dword [esi]
and ecx, 1
push ecx
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [ebp - 0xa4]
test cl, 4
je 0x50e2a1
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x68]
mov eax, dword [ebp - 0xa4]
test al, 0x20
je 0x50e288
push 1
jmp 0x50e296
test al, 0x40
je 0x50e290
push 2
jmp 0x50e296
test al, al
jns 0x50e2a1
push 3
mov ecx, dword [0x6c1224]
mov eax, dword [ecx]
call dword [eax + 0x68]
push 0x350
mov ecx, 0x6d0af0
call fcn.004637b0
mov edi, dword [ebp - 0x98]
mov esi, eax
push edi
push dword [ebp - 0x9c]
lea ecx, [esi + 0x93c]
push ecx
mov ecx, ebx
call fcn.0050dde0
test eax, eax
je 0x50e2df
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x9c]
call dword [eax + 0x24]
cmp dword [ebx + 0x1c], 0
je 0x50e328
mov ecx, dword [ebp - 0x94]
xor eax, eax
cmp dword [esi + 0x10], ecx
setne al
test al, 1
je 0x50e308
mov eax, dword [esi]
and ecx, 1
push ecx
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [ebp - 0x94]
test cl, 4
je 0x50e311
push 1
jmp 0x50e321
test cl, 8
je 0x50e31a
push 2
jmp 0x50e321
test cl, 0x10
je 0x50e328
push 3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x68]
push 0x510
mov ecx, 0x6d0af0
call fcn.004637b0
mov edi, dword [ebp - 0x88]
mov esi, eax
push edi
push dword [ebp - 0x8c]
lea ecx, [esi + 0x93c]
push ecx
mov ecx, ebx
call fcn.0050dde0
test eax, eax
je 0x50e366
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x8c]
call dword [eax + 0x24]
cmp dword [ebx + 0x1c], 0
je 0x50e389
mov ecx, dword [ebp - 0x84]
xor eax, eax
cmp dword [esi + 0x10], ecx
setne al
test al, 1
je 0x50e389
mov eax, dword [esi]
and ecx, 1
push ecx
mov ecx, esi
call dword [eax + 8]
push 0x4a8
mov ecx, 0x6d0af0
call fcn.004637b0
mov esi, eax
test esi, esi
je 0x50e3e2
mov edi, dword [ebp - 0x78]
lea ecx, [esi + 0x93c]
push edi
push dword [ebp - 0x7c]
push ecx
mov ecx, ebx
call fcn.0050dde0
test eax, eax
je 0x50e3c2
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x7c]
call dword [eax + 0x24]
cmp dword [ebx + 0x1c], 0
je 0x50e3e2
mov ecx, dword [ebp - 0x74]
xor eax, eax
cmp dword [esi + 0x10], ecx
setne al
test al, 1
je 0x50e3e2
mov eax, dword [esi]
and ecx, 1
push ecx
mov ecx, esi
call dword [eax + 8]
push 0x214
mov ecx, 0x6d0af0
call fcn.004637b0
mov edi, dword [ebp - 0x68]
mov esi, eax
push edi
push dword [ebp - 0x6c]
lea ecx, [esi + 0x93c]
push ecx
mov ecx, ebx
call fcn.0050dde0
test eax, eax
je 0x50e417
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x6c]
call dword [eax + 0x24]
cmp dword [ebx + 0x1c], 0
je 0x50e449
test byte [ebp - 0x64], 1
mov ecx, 0x6c12c0
je 0x50e42c
push 0
jmp 0x50e42e
push 1
call fcn.0048c7c0
test byte [ebp - 0x60], 1
mov ecx, 0x6c12c0
je 0x50e442
push 0
jmp 0x50e444
push 1
call fcn.0048c7a0
mov edi, dword [ebp - 0x50]
mov ecx, 0x6d0af0
test edi, edi
jne 0x50e45c
push 0x68e
jmp 0x50e461
push 0x6a1
call fcn.004637b0
mov esi, eax
test esi, esi
je 0x50e497
push dword [ebp - 0x58]
lea eax, [esi + 0x93c]
mov ecx, ebx
push dword [ebp - 0x5c]
push eax
call fcn.0050dde0
test eax, eax
je 0x50e491
push dword [ebp - 0x58]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x5c]
call dword [eax + 0x24]
mov dword [0x6e65d8], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4