Function at 0x421d60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47714b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x250
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], esp
push ebx
push 0x80
push 3
mov dword [esi], ebx
mov eax, dword [edi]
push ebx
push 1
push 0x80000000
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], 1
call dword [sym.imp.kernel32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x421f8c
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x49aec0]
mov dword [ebp + 0x10], eax
lea ecx, [ebp + 0x1c]
push 0x5334
push ecx
mov dword [ebp - 4], ebx
call fcn.0042ba30
mov edx, dword [edi]
mov eax, dword [eax]
push ebx
push edx
push eax
lea eax, [ebp + 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.004638af
add esp, 0x18
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], bl
call fcn.00465892
mov ecx, dword [ebp + 0x10]
push esi
cmp dword [ecx - 8], ebx
jne 0x421e34
lea edx, [ebp + 0x18]
push edx
call fcn.0042b940
mov ebx, 1
mov dword [ebp - 0x14], ebx
mov eax, dword [eax]
lea ecx, [ebp + 0x10]
push eax
push 0x498ca4
push ecx
mov byte [ebp - 4], 4
call fcn.004638af
add esp, 0x14
jmp 0x421e71
lea edx, [ebp + 0x14]
push edx
call fcn.0042b940
add esp, 8
mov dword [ebp - 0x14], 2
push eax
lea eax, [ebp + 0x1c]
push 0x498ca0
push eax
mov dword [ebp - 4], 5
call fcn.00465b9b
mov ebx, 6
mov dword [ebp - 0x14], ebx
push eax
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], ebx
call fcn.00465caa
test bl, 4
mov dword [ebp - 4], 5
je 0x421e8b
and ebx, 0xfffffffb
lea ecx, [ebp + 0x1c]
mov dword [ebp - 0x14], ebx
call fcn.00465892
test bl, 2
mov dword [ebp - 4], 4
je 0x421ea5
and ebx, 0xfffffffd
lea ecx, [ebp + 0x14]
mov dword [ebp - 0x14], ebx
call fcn.00465892
test bl, 1
mov dword [ebp - 4], 0
je 0x421eb9
lea ecx, [ebp + 0x18]
call fcn.00465892
mov ecx, dword [0x49a15c]
push 0
push 0x498b18
push 0x498b18
push 0
push ecx
call fcn.004420f7
add esp, 0x14
test eax, eax
jne 0x421ef0
mov edx, dword [0x49a15c]
mov dword [0x49a15c], 0x49e1e0
mov dword [0x49e210], edx
push 0x498b0c
lea ecx, [ebp + 0x14]
call fcn.00465900
mov bl, 7
push 0x499a3c
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], bl
call fcn.00465900
push 0
push esi
lea eax, [ebp + 0x14]
push 0x2dd
lea ecx, [ebp + 0x1c]
push eax
push ecx
mov ecx, dword [0x49a15c]
mov byte [ebp - 4], 8
call fcn.00429ee0
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], bl
call fcn.00465892
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 0
call fcn.00465892
mov ecx, dword [0x49a15c]
lea edx, [ebp + 0x10]
push edx
call fcn.00429f60
mov ecx, dword [0x49a15c]
call fcn.0042a9e0
mov ecx, dword [0x49a15c]
call fcn.0042a040
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.00465892
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0x4c]
call fcn.0042eaf0
mov eax, dword [ebp + 0x10]
mov ebx, 9
test eax, eax
mov dword [ebp - 4], ebx
push 0x49dd08
je 0x421fef
lea ecx, [ebp - 0x18]
call fcn.00465952
push 0x49dd08
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xa
call fcn.00465952
lea eax, [ebp - 0x18]
push 0
lea ecx, [ebp + 8]
push eax
push ecx
push 6
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xb
call fcn.0042ed70
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xa
call fcn.00465892
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
jmp 0x422032
lea ecx, [ebp - 0x18]
call fcn.00465952
push 0x49dd08
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xc
call fcn.00465952
lea edx, [ebp - 0x18]
push 0
lea eax, [ebp + 8]
push edx
push eax
push 0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xd
call fcn.0042ed70
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xc
call fcn.00465892
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.00465892
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
push 0
push ecx
lea edx, [ebp - 0x25c]
push 0x210
push edx
push eax
mov byte [ebp - 4], 0xe
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x42223c
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [0x49aec0]
mov esi, eax
mov dword [ebp + 0x1c], ecx
lea edx, [ebp + 0x14]
push 0x5335
push edx
mov byte [ebp - 4], 0xf
call fcn.0042ba30
add esp, 8
mov ecx, dword [edi]
mov eax, dword [eax]
push 0
push ecx
lea edx, [ebp + 0x1c]
push eax
push edx
mov byte [ebp - 4], 0x10
call fcn.004638af
add esp, 0x10
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 0xf
call fcn.00465892
mov eax, dword [ebp + 0x1c]
push esi
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4220e2
lea ecx, [ebp + 8]
push ecx
call fcn.0042b940
mov ebx, 8
add esp, 8
mov dword [ebp - 0x14], ebx
mov edx, dword [eax]
lea eax, [ebp + 0x1c]
push edx
push 0x498ca4
push eax
mov byte [ebp - 4], 0x13
call fcn.004638af
add esp, 0xc
jmp 0x422123
lea ecx, [ebp + 0x18]
push ecx
call fcn.0042b940
add esp, 8
mov dword [ebp - 0x14], 0x10
push eax
lea edx, [ebp + 0x14]
push 0x498ca0
push edx
mov dword [ebp - 4], 0x14
call fcn.00465b9b
mov ebx, 0x30
mov dword [ebp - 0x14], ebx
push eax
lea ecx, [ebp + 0x1c]
mov dword [ebp - 4], 0x15
call fcn.00465caa
test bl, 0x20
mov dword [ebp - 4], 0x14
je 0x42213d
and ebx, 0xffffffdf
lea ecx, [ebp + 0x14]
mov dword [ebp - 0x14], ebx
call fcn.00465892
test bl, 0x10
mov dword [ebp - 4], 0x13
je 0x422157
and ebx, 0xffffffef
lea ecx, [ebp + 0x18]
mov dword [ebp - 0x14], ebx
call fcn.00465892
test bl, 8
mov dword [ebp - 4], 0xf
je 0x42216b
lea ecx, [ebp + 8]
call fcn.00465892
mov eax, dword [0x49a15c]
push 0
push 0x498b18
push 0x498b18
push 0
push eax
call fcn.004420f7
add esp, 0x14
test eax, eax
jne 0x4221a1
mov ecx, dword [0x49a15c]
mov dword [0x49a15c], 0x49e1e0
mov dword [0x49e210], ecx
push 0x498b0c
lea ecx, [ebp + 0x18]
call fcn.00465900
mov bl, 0x16
push 0x499a3c
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], bl
call fcn.00465900
mov ecx, dword [0x49a15c]
push 0
push esi
lea edx, [ebp + 0x18]
push 0x2ee
lea eax, [ebp + 0x14]
push edx
push eax
mov byte [ebp - 4], 0x17
call fcn.00429ee0
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], bl
call fcn.00465892
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0xf
call fcn.00465892
lea ecx, [ebp + 0x1c]
push ecx
mov ecx, dword [0x49a15c]
call fcn.00429f60
mov ecx, dword [0x49a15c]
call fcn.0042a9e0
mov ecx, dword [0x49a15c]
call fcn.0042a040
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 0xe
call fcn.00465892
lea edx, [ebp - 0x30]
push 0x48ad48
push edx
mov dword [ebp - 0x30], 0
call fcn.004419d1
cmp dword [ebp - 0x20], 0x210
je 0x422426
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x49aec0]
mov dword [ebp + 0x1c], eax
lea ecx, [ebp + 0x14]
push 0x5335
push ecx
mov byte [ebp - 4], 0x18
call fcn.0042ba30
add esp, 8
mov edx, dword [edi]
mov eax, dword [eax]
push 0
push edx
push eax
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 0x19
call fcn.004638af
add esp, 0x10
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 0x18
call fcn.00465892
mov ecx, dword [ebp + 0x1c]
push esi
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4222cb
lea edx, [ebp + 8]
push edx
call fcn.0042b940
mov ebx, 0x40
add esp, 8
mov dword [ebp - 0x14], ebx
mov eax, dword [eax]
lea ecx, [ebp + 0x1c]
push eax
push 0x498ca4
push ecx
mov byte [ebp - 4], 0x1c
call fcn.004638af
add esp, 0xc
jmp 0x42230c
lea edx, [ebp + 0x18]
push edx
call fcn.0042b940
add esp, 8
mov dword [ebp - 0x14], 0x80
push eax
lea eax, [ebp + 0x14]
push 0x498ca0
push eax
mov dword [ebp - 4], 0x1d
call fcn.00465b9b
mov ebx, 0x180
mov dword [ebp - 0x14], ebx
push eax
lea ecx, [ebp + 0x1c]
mov dword [ebp - 4], 0x1e
call fcn.00465caa
test bh, 1
mov dword [ebp - 4], 0x1d
je 0x422326
and bh, 0xfe
lea ecx, [ebp + 0x14]
mov dword [ebp - 0x14], ebx
call fcn.00465892
test bl, 0x80
mov dword [ebp - 4], 0x1c
je 0x422340
and bl, 0x7f
lea ecx, [ebp + 0x18]
mov dword [ebp - 0x14], ebx
call fcn.00465892
test bl, 0x40
mov dword [ebp - 4], 0x18
je 0x422354
lea ecx, [ebp + 8]
call fcn.00465892
mov ecx, dword [0x49a15c]
push 0
push 0x498b18
push 0x498b18
push 0
push ecx
call fcn.004420f7
add esp, 0x14
test eax, eax
jne 0x42238b
mov edx, dword [0x49a15c]
mov dword [0x49a15c], 0x49e1e0
mov dword [0x49e210], edx
push 0x498b0c
lea ecx, [ebp + 0x18]
call fcn.00465900
mov bl, 0x1f
push 0x499a3c
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], bl
call fcn.00465900
push 0
push esi
lea eax, [ebp + 0x18]
push 0x2f3
lea ecx, [ebp + 0x14]
push eax
push ecx
mov ecx, dword [0x49a15c]
mov byte [ebp - 4], 0x20
call fcn.00429ee0
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], bl
call fcn.00465892
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0x18
call fcn.00465892
mov ecx, dword [0x49a15c]
lea edx, [ebp + 0x1c]
push edx
call fcn.00429f60
mov ecx, dword [0x49a15c]
call fcn.0042a9e0
mov ecx, dword [0x49a15c]
call fcn.0042a040
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 0xe
call fcn.00465892
lea eax, [ebp - 0x2c]
push 0x48ad48
push eax
mov dword [ebp - 0x2c], 0
call fcn.004419d1
cmp dword [ebp - 0x25c], 0x4e444221
je 0x422553
mov ecx, dword [0x49aec0]
mov dword [ebp + 0x1c], ecx
lea edx, [ebp + 0x14]
push 0x5338
push edx
mov byte [ebp - 4], 0x21
call fcn.0042ba30
add esp, 8
mov ecx, dword [ebp - 0x25c]
mov edx, dword [edi]
mov eax, dword [eax]
push ecx
push edx
push eax
lea eax, [ebp + 0x1c]
mov byte [ebp - 4], 0x22
push eax
call fcn.004638af
add esp, 0x10
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 0x21
call fcn.00465892
mov ecx, dword [0x49a15c]
push 0
push 0x498b18
push 0x498b18
push 0
push ecx
call fcn.004420f7
add esp, 0x14
test eax, eax
jne 0x4224b4
mov edx, dword [0x49a15c]
mov dword [0x49a15c], 0x49e1e0
mov dword [0x49e210], edx
push 0x498b0c
lea ecx, [ebp + 0x18]
call fcn.00465900
mov bl, 0x25
push 0x499a3c
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], bl
call fcn.00465900
push 0
push 0x5338
lea eax, [ebp + 0x18]
push 0x2fc
lea ecx, [ebp + 0x14]
push eax
push ecx
mov ecx, dword [0x49a15c]
mov byte [ebp - 4], 0x26
call fcn.00429ee0
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], bl
call fcn.00465892
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0x21
call fcn.00465892
mov ecx, dword [0x49a15c]
lea edx, [ebp + 0x1c]
push edx
call fcn.00429f60
mov ecx, dword [0x49a15c]
call fcn.0042a9e0
mov ecx, dword [0x49a15c]
call fcn.0042a040
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 0xe
call fcn.00465892
lea eax, [ebp - 0x24]
push 0x48ad48
push eax
mov dword [ebp - 0x24], 0
call fcn.004419d1
mov al, byte [ebp - 0x252]
cmp al, 0x10
jae 0x4225c6
mov eax, dword [ebp + 0x1c]
mov dword [esi], 1
test eax, eax
je 0x422572
mov cl, byte [ebp - 0x8f]
mov byte [eax], cl
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x422581
mov edx, dword [ebp - 0x198]
mov dword [eax], edx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x422590
mov ecx, dword [ebp - 0x1a0]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4225a3
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4225a3
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0xffffffff
call fcn.0042ecb0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 0x17
ja 0x4225fc
mov eax, dword [ebp + 0x1c]
mov dword [esi], 2
test eax, eax
je 0x4225dc
mov dl, byte [ebp - 0x5b]
mov byte [eax], dl
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4225eb
mov ecx, dword [ebp - 0x16c]
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x422590
mov edx, dword [ebp - 0x17c]
mov dword [eax], edx
jmp 0x422590
lea ecx, [ebp - 0x4c]
call fcn.0042eef0
mov eax, dword [0x49aec0]
mov dword [ebp + 0x1c], eax
lea ecx, [ebp + 0x14]
push 0x5339
push ecx
mov byte [ebp - 4], 0x27
call fcn.0042ba30
add esp, 8
mov edx, dword [ebp - 0x252]
mov ecx, dword [edi]
mov eax, dword [eax]
and edx, 0xff
push edx
push ecx
lea edx, [ebp + 0x1c]
push eax
push edx
mov byte [ebp - 4], 0x28
call fcn.004638af
add esp, 0x10
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 0x27
call fcn.00465892
mov eax, dword [0x49a15c]
push 0
push 0x498b18
push 0x498b18
push 0
push eax
call fcn.004420f7
add esp, 0x14
test eax, eax
jne 0x422686
mov ecx, dword [0x49a15c]
mov dword [0x49a15c], 0x49e1e0
mov dword [0x49e210], ecx
push 0x498b0c
lea ecx, [ebp + 0x18]
call fcn.00465900
mov bl, 0x2b
push 0x499a3c
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], bl
call fcn.00465900
mov ecx, dword [0x49a15c]
push 0
push 0x5339
lea edx, [ebp + 0x18]
push 0x31a
lea eax, [ebp + 0x14]
push edx
push eax
mov byte [ebp - 4], 0x2c
call fcn.00429ee0
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], bl
call fcn.00465892
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0x27
call fcn.00465892
lea ecx, [ebp + 0x1c]
push ecx
mov ecx, dword [0x49a15c]
call fcn.00429f60
mov ecx, dword [0x49a15c]
call fcn.0042a9e0
mov ecx, dword [0x49a15c]
call fcn.0042a040
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 0xe
call fcn.00465892
lea edx, [ebp - 0x28]
push 0x48ad48
push edx
mov dword [ebp - 0x28], 0
call fcn.004419d1
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x422733
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, 0x422590
ret