Function at 0x510ae0
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 0x511138
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 0x510b55
cmp dword [ebp - 8], 0x6111101
jne 0x510b55
push 0
lea eax, [ebp + 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push esi
call edi
test eax, eax
je 0x510b55
movzx eax, byte [0x706bc0]
cmp dword [ebp - 0xc], eax
je 0x510b65
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 0x510b56
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x77d
mov ecx, 0x6d3af8
call fcn.004666e0
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.00510a80
test eax, eax
je 0x510bba
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x2c]
call dword [eax + 0x24]
push 0x84d
mov ecx, 0x6d3af8
call fcn.004666e0
cmp dword [ebx + 0x1c], 0
mov esi, eax
je 0x510bf9
mov eax, dword [ebp - 0x14]
xor ecx, ecx
cmp dword [esi + 0x24], eax
setne cl
test cl, 1
je 0x510bf9
and eax, 1
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [0x6c454c]
and eax, 1
push eax
call fcn.0042c5d0
mov edi, dword [ebp - 0x18]
lea eax, [esi + 0x93c]
push edi
push dword [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.00510a80
test eax, eax
je 0x510c1d
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x1c]
call dword [eax + 0x24]
push 0x1db
mov ecx, 0x6d3af8
call fcn.004666e0
cmp dword [ebx + 0x1c], 0
mov esi, eax
je 0x510c52
mov edx, dword [ebp - 0x124]
xor ecx, ecx
cmp dword [esi + 0x10], edx
setne cl
test cl, 1
je 0x510c52
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.00510a80
test eax, eax
je 0x510c7f
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x12c]
call dword [eax + 0x24]
push 0xed
mov ecx, 0x6d3af8
call fcn.004666e0
cmp dword [ebx + 0x1c], 0
mov esi, eax
mov edx, dword [ebp - 0xe4]
je 0x510cba
xor ecx, ecx
cmp dword [esi + 0x10], edx
setne cl
test cl, 1
je 0x510cba
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.0046b720
push 0x124
mov ecx, 0x6d3af8
call fcn.004666e0
cmp dword [ebx + 0x1c], 0
mov edi, eax
je 0x510d80
mov edx, dword [ebp - 0xd4]
xor ecx, ecx
cmp dword [edi + 0x10], edx
setne cl
test cl, 1
je 0x510d04
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 0x510d0d
push 1
jmp 0x510d1d
test dl, 8
je 0x510d16
push 2
jmp 0x510d1d
test dl, 0x10
je 0x510d24
push 4
mov ecx, edi
call fcn.004eb1d0
mov eax, dword [ebp - 0xd0]
mov ecx, edi
mov dword [ebp - 4], eax
call fcn.004ea830
movzx esi, al
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x510d69
mov edi, edi
mov ecx, edi
push 0x40
push 0
cmp eax, esi
jle 0x510d57
push 0x132
call fcn.004eaf40
inc esi
jmp 0x510d62
push 0x133
call fcn.004eaf40
dec esi
mov eax, dword [ebp - 4]
cmp esi, eax
jne 0x510d40
test dword [ebp - 0xd4], 0x100
je 0x510d80
push 0
mov ecx, edi
call fcn.004eb220
mov edi, edi
push 0x5d0
mov ecx, 0x6d3af8
call fcn.004666e0
test eax, eax
je 0x510dad
cmp dword [ebx + 0x1c], 0
je 0x510dad
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, 0x6d3af8
call fcn.004666e0
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.00510a80
test eax, eax
je 0x510deb
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0xcc]
call dword [eax + 0x24]
cmp dword [ebx + 0x1c], 0
je 0x510e34
mov ecx, dword [ebp - 0xc4]
xor eax, eax
cmp dword [esi + 0x10], ecx
setne al
test al, 1
je 0x510e14
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 0x510e1d
push 1
jmp 0x510e2d
test cl, 8
je 0x510e26
push 2
jmp 0x510e2d
test cl, 0x10
je 0x510e34
push 3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x68]
push 0x61
mov ecx, 0x6d3af8
call fcn.004666e0
cmp dword [ebx + 0x1c], 0
mov esi, eax
je 0x510e66
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
cmp dword [esi + 0x10], edx
setne cl
test cl, 1
je 0x510e66
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.00510a80
test eax, eax
je 0x510e93
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0xbc]
call dword [eax + 0x24]
push 0xc7
mov ecx, 0x6d3af8
call fcn.004666e0
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.00510a80
test eax, eax
je 0x510ed1
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0xac]
call dword [eax + 0x24]
cmp dword [ebx + 0x1c], 0
je 0x510f41
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 0x510f0c
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 0x510f41
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x68]
mov eax, dword [ebp - 0xa4]
test al, 0x20
je 0x510f28
push 1
jmp 0x510f36
test al, 0x40
je 0x510f30
push 2
jmp 0x510f36
test al, al
jns 0x510f41
push 3
mov ecx, dword [0x6c422c]
mov eax, dword [ecx]
call dword [eax + 0x68]
push 0x350
mov ecx, 0x6d3af8
call fcn.004666e0
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.00510a80
test eax, eax
je 0x510f7f
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x9c]
call dword [eax + 0x24]
cmp dword [ebx + 0x1c], 0
je 0x510fc8
mov ecx, dword [ebp - 0x94]
xor eax, eax
cmp dword [esi + 0x10], ecx
setne al
test al, 1
je 0x510fa8
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 0x510fb1
push 1
jmp 0x510fc1
test cl, 8
je 0x510fba
push 2
jmp 0x510fc1
test cl, 0x10
je 0x510fc8
push 3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x68]
push 0x510
mov ecx, 0x6d3af8
call fcn.004666e0
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.00510a80
test eax, eax
je 0x511006
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x8c]
call dword [eax + 0x24]
cmp dword [ebx + 0x1c], 0
je 0x511029
mov ecx, dword [ebp - 0x84]
xor eax, eax
cmp dword [esi + 0x10], ecx
setne al
test al, 1
je 0x511029
mov eax, dword [esi]
and ecx, 1
push ecx
mov ecx, esi
call dword [eax + 8]
push 0x4a8
mov ecx, 0x6d3af8
call fcn.004666e0
mov esi, eax
test esi, esi
je 0x511082
mov edi, dword [ebp - 0x78]
lea ecx, [esi + 0x93c]
push edi
push dword [ebp - 0x7c]
push ecx
mov ecx, ebx
call fcn.00510a80
test eax, eax
je 0x511062
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x7c]
call dword [eax + 0x24]
cmp dword [ebx + 0x1c], 0
je 0x511082
mov ecx, dword [ebp - 0x74]
xor eax, eax
cmp dword [esi + 0x10], ecx
setne al
test al, 1
je 0x511082
mov eax, dword [esi]
and ecx, 1
push ecx
mov ecx, esi
call dword [eax + 8]
push 0x214
mov ecx, 0x6d3af8
call fcn.004666e0
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.00510a80
test eax, eax
je 0x5110b7
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x6c]
call dword [eax + 0x24]
cmp dword [ebx + 0x1c], 0
je 0x5110e9
test byte [ebp - 0x64], 1
mov ecx, 0x6c42c8
je 0x5110cc
push 0
jmp 0x5110ce
push 1
call fcn.0048f880
test byte [ebp - 0x60], 1
mov ecx, 0x6c42c8
je 0x5110e2
push 0
jmp 0x5110e4
push 1
call fcn.0048f860
mov edi, dword [ebp - 0x50]
mov ecx, 0x6d3af8
test edi, edi
jne 0x5110fc
push 0x68e
jmp 0x511101
push 0x6a1
call fcn.004666e0
mov esi, eax
test esi, esi
je 0x511137
push dword [ebp - 0x58]
lea eax, [esi + 0x93c]
mov ecx, ebx
push dword [ebp - 0x5c]
push eax
call fcn.00510a80
test eax, eax
je 0x511131
push dword [ebp - 0x58]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x5c]
call dword [eax + 0x24]
mov dword [0x6e95e0], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4