Function at 0x421be0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a885
mov eax, dword fs:[0]
push eax
mov eax, 0x7e7c
call fcn.00444d80
mov eax, dword [0x46db30]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7e5c], ecx
push 1
push 0x1c0
push 0x284
push 0
push 0
mov ecx, dword [ebp - 0x7e5c]
add ecx, 4
call fcn.0040c0f0
push 0
mov ecx, dword [ebp - 0x7e5c]
add ecx, 4
call fcn.0040be80
push 0
push 0xc
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 1
push 0x80
mov ecx, 0x473d68
call fcn.0040be50
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebp - 0x14], eax
push 1
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x7e5c]
add ecx, 4
call fcn.0040be20
push 0
push 0x32
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 1
push 0x80
mov ecx, 0x473d68
call fcn.0040be50
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebp - 0x228], eax
push 0
mov ecx, dword [ebp - 0x228]
push ecx
mov ecx, dword [ebp - 0x7e5c]
add ecx, 4
call fcn.0040be20
push 0x104
lea edx, [ebp - 0x224]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp - 0x7e5c]
mov dword [eax + 0xf4], 0
push 0x45f734
lea ecx, [ebp - 0x10]
call fcn.00404620
mov dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x7924], eax
push 0
push 0
push 0x2f8934
mov edx, dword [ebp - 0x7924]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x7928]
push eax
push 0x76cc
lea ecx, [ebp - 0x7904]
push ecx
mov edx, dword [ebp - 0x7924]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x7924]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x7904]
push ecx
call fcn.0042d1b0
add esp, 4
test eax, eax
jne 0x421dcf
push 0x10
push 0x45f738
push str.This_file_is_damaged.
mov ecx, dword [ebp - 0x7e5c]
add ecx, 4
call fcn.0040bc80
push 1
mov ecx, dword [ebp - 0x7e5c]
call fcn.00423110
mov dword [ebp - 0x7e34], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042edc0
mov eax, dword [ebp - 0x7e34]
jmp 0x4225a4
mov edx, dword [ebp - 0x7e5c]
mov eax, dword [ebp - 0x438c]
mov dword [edx + 0xf4], eax
cmp dword [ebp - 0x477c], 2
je 0x421df7
cmp dword [ebp - 0x477c], 3
jne 0x421f45
mov ecx, dword [ebp - 0x7e5c]
mov edx, dword [ecx + 0xf4]
push edx
lea eax, [ebp - 0x7904]
push eax
push 1
lea ecx, [ebp - 0x7bac]
call fcn.00408110
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4778]
push ecx
lea ecx, [ebp - 0x7bac]
call fcn.0040a200
mov edx, dword [ebp - 0x7e5c]
add edx, 0xf8
push edx
call fcn.0042ed10
add esp, 4
test eax, eax
jg 0x421eb1
push 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x7bac]
call fcn.00423200
cmp eax, 2
jne 0x421ea0
push 1
mov ecx, dword [ebp - 0x7e5c]
call fcn.00423110
mov dword [ebp - 0x7e38], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7bac]
call fcn.004082a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042edc0
mov eax, dword [ebp - 0x7e38]
jmp 0x4225a4
lea eax, [ebp - 0x7ab0]
push eax
lea ecx, [ebp - 0x10]
call fcn.0042f030
jmp 0x421f0d
mov ecx, dword [ebp - 0x7e5c]
add ecx, 0xf8
push ecx
lea ecx, [ebp - 0x7bac]
call fcn.00409130
test eax, eax
jne 0x421f0d
push 1
mov ecx, dword [ebp - 0x7e5c]
call fcn.00423110
mov dword [ebp - 0x7e3c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7bac]
call fcn.004082a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042edc0
mov eax, dword [ebp - 0x7e3c]
jmp 0x4225a4
lea edx, [ebp - 0x79ec]
push edx
mov ecx, dword [ebp - 0x7e5c]
call fcn.00422e00
mov eax, dword [ebp - 0x7e5c]
mov ecx, dword [ebp - 0x79f0]
mov dword [eax + 0xf4], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7bac]
call fcn.004082a0
jmp 0x422088
cmp dword [ebp - 0x477c], 1
jne 0x422088
mov edx, dword [ebp - 0x7e5c]
mov eax, dword [edx + 0xf4]
push eax
lea ecx, [ebp - 0x7904]
push ecx
push 0
lea ecx, [ebp - 0x7e2c]
call fcn.00408110
mov byte [ebp - 4], 2
lea edx, [ebp - 0x4778]
push edx
lea ecx, [ebp - 0x7e2c]
call fcn.0040a200
mov eax, dword [ebp - 0x7e5c]
add eax, 0xf8
push eax
call fcn.0042ed10
add esp, 4
test eax, eax
jg 0x42200b
push 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x7e2c]
call fcn.00423200
cmp eax, 2
jne 0x421ffa
push 1
mov ecx, dword [ebp - 0x7e5c]
call fcn.00423110
mov dword [ebp - 0x7e40], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7e2c]
call fcn.004082a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042edc0
mov eax, dword [ebp - 0x7e40]
jmp 0x4225a4
lea ecx, [ebp - 0x7d30]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0042f030
jmp 0x422067
mov edx, dword [ebp - 0x7e5c]
add edx, 0xf8
push edx
lea ecx, [ebp - 0x7e2c]
call fcn.00409130
test eax, eax
jne 0x422067
push 1
mov ecx, dword [ebp - 0x7e5c]
call fcn.00423110
mov dword [ebp - 0x7e44], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7e2c]
call fcn.004082a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042edc0
mov eax, dword [ebp - 0x7e44]
jmp 0x4225a4
mov eax, dword [ebp - 0x7e5c]
mov ecx, dword [ebp - 0x7c70]
mov dword [eax + 0xf4], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7e2c]
call fcn.004082a0
push 0x45f770
mov edx, dword [ebp - 0x455c]
push edx
lea eax, [ebp - 0x4558]
push eax
push 0
push 0
call fcn.0042dc40
add esp, 0x14
push 0x45f784
mov ecx, dword [ebp - 0x4458]
push ecx
lea edx, [ebp - 0x4454]
push edx
push 0
push 0
call fcn.0042dc40
add esp, 0x14
mov eax, dword [ebp - 0x4458]
cdq
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x4454], cx
lea edx, [ebp - 0x4454]
push edx
mov eax, dword [ebp - 0x455c]
cdq
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x4558]
push eax
call fcn.0042e250
add esp, 0xc
mov ecx, dword [ebp - 0x7e5c]
mov dword [ecx + 0x74], eax
mov edx, dword [ebp - 0x7e5c]
mov eax, dword [ebp - 0xb00]
mov dword [edx + 0x2f8], eax
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x7920]
call fcn.00404620
mov byte [ebp - 4], 3
push 0x5c
lea ecx, [ebp - 0x7920]
call fcn.0041e570
mov dword [ebp - 0x7908], eax
mov edx, dword [ebp - 0x7908]
add edx, 1
push edx
lea eax, [ebp - 0x7e48]
push eax
lea ecx, [ebp - 0x7920]
call fcn.00404800
mov dword [ebp - 0x7e60], eax
mov ecx, dword [ebp - 0x7e60]
mov dword [ebp - 0x7e64], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x7e64]
push edx
lea ecx, [ebp - 0x7920]
call fcn.00406370
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7e48]
call fcn.0042edc0
push 0x2e
lea ecx, [ebp - 0x7920]
call fcn.0041e570
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
jle 0x422200
mov eax, dword [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x7e4c]
push ecx
lea ecx, [ebp - 0x7920]
call fcn.0041e5c0
mov dword [ebp - 0x7e68], eax
mov edx, dword [ebp - 0x7e68]
mov dword [ebp - 0x7e6c], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x7e6c]
push eax
lea ecx, [ebp - 0x7920]
call fcn.00406370
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7e4c]
call fcn.0042edc0
lea ecx, [ebp - 0x4884]
mov dword [ebp - 0x7e70], ecx
mov edx, dword [ebp - 0x7e70]
add edx, 2
mov dword [ebp - 0x7e74], edx
mov eax, dword [ebp - 0x7e70]
mov cx, word [eax]
mov word [ebp - 0x7e76], cx
add dword [ebp - 0x7e70], 2
cmp word [ebp - 0x7e76], 0
jne 0x42221b
mov edx, dword [ebp - 0x7e70]
sub edx, dword [ebp - 0x7e74]
sar edx, 1
mov dword [ebp - 0x7e7c], edx
je 0x422274
push 0x45f798
lea ecx, [ebp - 0x7920]
call fcn.0040a750
lea eax, [ebp - 0x4884]
push eax
lea ecx, [ebp - 0x7920]
call fcn.0040a750
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x7920]
push edx
lea eax, [ebp - 0x7e50]
push eax
call fcn.00423060
add esp, 0xc
mov dword [ebp - 0x7e80], eax
mov ecx, dword [ebp - 0x7e80]
call fcn.0041ebc0
push eax
mov ecx, dword [ebp - 0x7e5c]
add ecx, 4
call fcn.0040bdd0
lea ecx, [ebp - 0x7e50]
call fcn.0042edc0
cmp dword [ebp - 0x4784], 0
jle 0x42231b
cmp dword [ebp - 0x4780], 0
jle 0x42231b
cmp dword [ebp - 0x4784], 0x280
je 0x42231b
cmp dword [ebp - 0x4780], 0x168
je 0x42231b
push 1
mov ecx, dword [ebp - 0x4780]
add ecx, 0x58
push ecx
mov edx, dword [ebp - 0x4784]
add edx, 4
push edx
push 0
push 0
mov ecx, dword [ebp - 0x7e5c]
add ecx, 4
call fcn.0040c0f0
push 0
mov ecx, dword [ebp - 0x7e5c]
add ecx, 4
call fcn.0040be80
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x230]
call fcn.00404620
mov byte [ebp - 4], 6
cmp dword [ebp - 0xb08], 0
jne 0x42236a
lea ecx, [ebp - 0x4736]
push ecx
lea ecx, [ebp - 0x230]
call fcn.0040a750
push 0x300000
lea ecx, [ebp - 0x230]
call fcn.00423020
push eax
call fcn.0041e130
add esp, 8
jmp 0x42240a
push 0x2e
lea ecx, [ebp - 0x230]
call fcn.0041e570
mov dword [ebp - 0x7e30], eax
mov edx, dword [ebp - 0x7e30]
push edx
lea eax, [ebp - 0x7e54]
push eax
lea ecx, [ebp - 0x230]
call fcn.0041e5c0
mov dword [ebp - 0x7e84], eax
mov ecx, dword [ebp - 0x7e84]
mov dword [ebp - 0x7e88], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x7e88]
push edx
lea ecx, [ebp - 0x230]
call fcn.00406370
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x7e54]
call fcn.0042edc0
push str..ppvm
lea ecx, [ebp - 0x230]
call fcn.0040a750
lea eax, [ebp - 0x4736]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040a750
mov ecx, dword [ebp - 0xb04]
push ecx
lea ecx, [ebp - 0x230]
call fcn.00423020
push eax
call fcn.0041e130
add esp, 8
lea edx, [ebp - 0x230]
push edx
mov ecx, dword [ebp - 0x7e5c]
add ecx, 0x78
call fcn.00406370
lea eax, [ebp - 0x791c]
push eax
mov ecx, dword [ebp - 0x7e5c]
add ecx, 4
call fcn.0040bdb0
push 0x3e8
mov ecx, dword [ebp - 0x7e5c]
add ecx, 0x20
call fcn.0042b150
mov dword [ebp - 0x790c], eax
cmp dword [ebp - 0x790c], 0
je 0x422475
lea ecx, [ebp - 0x791c]
push ecx
mov ecx, dword [ebp - 0x790c]
call fcn.00407470
push 0
mov ecx, dword [ebp - 0x790c]
call fcn.004217c0
lea edx, [ebp - 0x1b08]
push edx
mov ecx, dword [ebp - 0x7e5c]
add ecx, 0x7c
call fcn.0042f030
lea eax, [ebp - 0x4308]
push eax
mov ecx, dword [ebp - 0x7e5c]
add ecx, 0x80
call fcn.004015c0
cmp dword [ebp - 0x4394], 0
jle 0x4224bc
mov ecx, dword [ebp - 0x7e5c]
add ecx, 0x80
call fcn.004016f0
cmp dword [ebp - 0x4390], 0
jle 0x4224ca
call fcn.00420e90
mov ecx, dword [ebp - 0x7e5c]
mov edx, dword [ecx + 4]
push edx
mov ecx, dword [ebp - 0x7e5c]
add ecx, 0x80
call fcn.00403cf0
push 0
push 0x2710
push 1
mov ecx, dword [ebp - 0x7e5c]
add ecx, 4
call fcn.00417080
push 0
push 0x3e8
push 2
mov ecx, dword [ebp - 0x7e5c]
add ecx, 4
call fcn.00417080
mov eax, dword [ebp - 0x7e5c]
cmp dword [eax + 0xf4], 1
jle 0x422539
push 0
push 0x3e8
push 3
mov ecx, dword [ebp - 0x7e5c]
add ecx, 4
call fcn.00417080
push 0
push 0x3e8
push 4
mov ecx, dword [ebp - 0x7e5c]
add ecx, 4
call fcn.00417080
push 0
push 0x7d0
push 5
mov ecx, dword [ebp - 0x7e5c]
add ecx, 4
call fcn.00417080
mov dword [ebp - 0x7e58], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x230]
call fcn.0042edc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7920]
call fcn.0042edc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042edc0
mov eax, dword [ebp - 0x7e58]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00441cf2
mov esp, ebp
pop ebp
ret 0x10