Function at 0x413eb3
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Get file size
Read file on windows
Resolve function by parsing pe exports
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8d4
mov eax, dword [0x42e0b4]
xor eax, esp
mov dword [esp + 0x8d0], eax
push ebx
push esi
push edi
mov edi, edx
mov dword [esp + 0x54], 1
mov esi, ecx
mov dword [esp + 0x30], edi
xor ecx, ecx
or ebx, 0xffffffff
mov eax, ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x2c], ecx
test eax, eax
je 0x41fe30
mov eax, dword [eax + 0x1c]
shr eax, 1
and eax, 8
mov dword [esp + 0x58], ecx
mov dword [esp + 0x4c], eax
mov eax, 0x104
push eax
mov dword [esp + 0x28c], eax
lea eax, [esp + 0x7c]
push ecx
push eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x28c], ecx
mov byte [esp + 0x290], 1
call sub.msvcrt.dll_memset
add esp, 0xc
mov byte [esp + 0x8cc], 1
mov eax, 0x104
xor ecx, ecx
mov dword [esp + 0x8d0], eax
mov dword [esp + 0x8c8], ecx
push eax
push ecx
lea eax, [esp + 0x6c8]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov byte [esp + 0x6b4], 1
mov eax, 0x104
xor ecx, ecx
mov dword [esp + 0x6b8], eax
mov dword [esp + 0x6b0], ecx
push eax
push ecx
lea eax, [esp + 0x4b0]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov byte [esp + 0x49c], 1
mov eax, 0x104
xor ecx, ecx
mov dword [esp + 0x4a0], eax
mov dword [esp + 0x498], ecx
push eax
push ecx
lea eax, [esp + 0x298]
push eax
call sub.msvcrt.dll_memset
xor eax, eax
lea ecx, [esp + 0x84]
add esp, 0xc
cmp byte [esp + 0x284], al
sete al
dec eax
and eax, 0x7ee3
add eax, 0x104
push eax
call fcn.0040e3f0
test eax, eax
js 0x4208ed
xor eax, eax
lea ecx, [esp + 0x6c0]
cmp byte [esp + 0x8cc], al
sete al
dec eax
and eax, 0x7ee3
add eax, 0x104
push eax
call fcn.0040e3f0
test eax, eax
js 0x4208ed
xor eax, eax
lea ecx, [esp + 0x4a8]
cmp byte [esp + 0x6b4], al
sete al
dec eax
and eax, 0x7ee3
add eax, 0x104
push eax
call fcn.0040e3f0
test eax, eax
js 0x4208ed
xor eax, eax
lea ecx, [esp + 0x290]
cmp byte [esp + 0x49c], al
sete al
dec eax
and eax, 0xfdc6
add eax, 0x208
push eax
call fcn.0040e3f0
test eax, eax
js 0x4208ed
push 0x40234c
lea ecx, [esp + 0x4ac]
call fcn.0040a641
xor eax, eax
mov ecx, 0xfe00
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0041522c
mov dword [esp + 0x24], eax
test eax, eax
je 0x4208ed
cmp dword [0x436708], 0
jne 0x41fe38
mov esi, dword [esi + 0x20]
mov dword [esp + 0x14], esi
test esi, esi
je 0x414545
mov edi, dword [esp + 0x14]
mov esi, dword [esi + 0x18]
mov ecx, dword [edi]
call fcn.00410060
lea ecx, [esp + 0x1c]
mov edx, eax
push ecx
push esi
xor ecx, ecx
push ecx
push 0x21
mov ecx, fcn.004159d0
call fcn.0041589a
test al, al
je 0x41fe61
mov esi, edi
cmp dword [0x43259c], 0
jne 0x420922
mov edx, dword [esp + 0x8c8]
test edx, edx
je 0x41fe84
push dword [esp + 0x8d0]
mov ecx, esi
call fcn.00414d28
cmp eax, 1
je 0x4208e4
cmp dword [0x43670c], 0
jne 0x4145d5
mov eax, dword [0x436704]
cmp eax, 3
je 0x41fe90
test byte [esi + 0x1c], 8
je 0x4146af
push dword [esi + 4]
push 0x402280
call fcn.00409950
cmp dword [0x436704], 3
pop ecx
pop ecx
je 0x41feb7
mov eax, dword [esp + 0x280]
test eax, eax
je 0x41fec9
mov edx, dword [esp + 0x30]
xor edi, edi
push edi
push dword [esp + 0x28c]
mov ecx, esi
push eax
call fcn.00413cd0
cmp eax, 1
je 0x4208e4
cmp dword [0x436704], 3
je 0x41fed2
mov eax, dword [esp + 0x280]
test eax, eax
je 0x41ff05
cmp word [eax], di
je 0x41450e
push ecx
push ecx
mov ecx, dword [esi + 4]
xor edx, edx
call fcn.0041654b
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
je 0x41ff0e
mov ecx, eax
call fcn.0040dd98
test eax, eax
jne 0x41ff58
cmp dword [0x436708], eax
jne 0x41ff80
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x28], ecx
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x48], ecx
test al, 4
jne 0x4145df
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x498]
test ecx, ecx
je 0x41ffca
push dword [esi + 4]
mov edx, dword [esp + 0x4a4]
call fcn.00411cd5
mov ecx, dword [esp + 0x280]
mov edi, eax
test ecx, ecx
je 0x41ffd6
call fcn.00410060
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ebx
push esi
lea eax, [esp + 0x24]
push eax
push 0x200
call fcn.00414ca0
cmp dword [0x4367a8], 0
mov dword [esp + 0x6c], eax
jne 0x41ffdf
mov esi, dword [0x436704]
cmp esi, 3
je 0x420006
mov eax, dword [esp + 0x280]
test eax, eax
je 0x42001c
mov edx, dword [esp + 0x498]
test edx, edx
je 0x420025
push eax
mov ecx, edi
call fcn.00413aef
mov esi, dword [esp + 0x14]
test eax, eax
jne 0x420031
mov ecx, dword [esp + 0x30]
xor edx, edx
inc edx
xor eax, eax
mov dword [0x436770], edx
cmp dword [0x43670c], eax
jne 0x414602
mov eax, dword [esp + 0x280]
test eax, eax
je 0x4200ad
push edx
push dword [esp + 0x28c]
mov edx, ecx
mov ecx, esi
push eax
call fcn.00413cd0
cmp eax, 1
je 0x4208db
mov eax, dword [esp + 0x280]
mov ecx, eax
test eax, eax
je 0x4200b6
xor edx, edx
cmp word [ecx], dx
je 0x4200bf
test eax, eax
je 0x4200cd
mov edx, dword [esp + 0x498]
test edx, edx
je 0x4200d6
push eax
mov ecx, edi
call fcn.00413aef
test eax, eax
jne 0x4200e2
mov eax, dword [esp + 0x280]
test eax, eax
je 0x420141
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
mov ecx, dword [esp + 0x2c]
mov edx, eax
mov esi, dword [0x436704]
test ecx, ecx
je 0x414643
mov edi, dword [esp + 0x14]
cmp dword [0x43670c], 0
jne 0x41468c
test dl, 6
je 0x4146bd
or ebx, 0xffffffff
mov dword [0x4367a8], 5
mov dword [esp + 0x10], ebx
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x40], eax
cmp dword [esp + 0x5c], 1
mov edx, dword [esp + 0x2c]
je 0x4201f3
mov ecx, dword [edi + 0x1c]
mov eax, ecx
test cl, 8
je 0x414713
mov ecx, eax
test al, 8
je 0x4143d6
cmp esi, 3
je 0x42022d
mov edi, dword [esp + 0x24]
lea edx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.00414c75
cmp esi, 3
mov esi, dword [esp + 0x14]
je 0x4205df
mov eax, dword [esi + 0x1c]
test al, 1
je 0x4205df
mov ecx, 0x800
mov ebx, eax
and ebx, ecx
mov edi, ebx
neg edi
sbb edi, edi
and edi, ecx
mov ecx, dword [esp + 0x10]
cmp ecx, 0xffffffff
jne 0x414723
test eax, 0x400
jne 0x420250
mov esi, dword [0x4325b8]
test esi, esi
je 0x4202b6
mov ecx, dword [esp + 0x280]
test ecx, ecx
je 0x4202de
mov eax, dword [esp + 0x4c]
or eax, edi
mov edi, dword [esp + 0x14]
push eax
push 0x43259c
xor eax, eax
push eax
push eax
push ecx
push dword [edi + 4]
mov ecx, esi
call dword [0x44a4c4]
call esi
xor edi, edi
mov esi, dword [esp + 0x14]
test eax, eax
je 0x4202e7
cmp dword [esp + 0x40], 0
jne 0x4144bd
mov eax, dword [esp + 0x280]
test eax, eax
je 0x420375
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4144b0
mov ecx, dword [esp + 0x280]
test ecx, ecx
je 0x42037e
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
cmp dword [0x436708], 0
jne 0x420387
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0x18]
mov dword [0x4367a0], edi
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x70], eax
mov eax, dword [ecx + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x74], eax
call fcn.0040a16c
cmp dword [0x436704], 3
je 0x414508
cmp dword [0x43259c], 0
jne 0x420862
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x70]
push eax
push ebx
mov ecx, esi
call fcn.00414c40
mov dword [0x43670c], edi
push dword [esp + 0x1c]
mov edx, dword [esi + 0x18]
mov ecx, fcn.004159d0
push 0x21
call fcn.00415851
test al, al
jne 0x41410d
mov ecx, dword [esp + 0x1c]
call fcn.00408b4d
mov esi, dword [esi + 0x20]
mov dword [esp + 0x14], esi
test esi, esi
jne 0x4140de
mov edi, dword [esp + 0x30]
cmp dword [0x436704], 3
je 0x420939
mov eax, dword [esp + 0x498]
xor ebx, ebx
mov dword [esp + 0x498], ebx
test eax, eax
je 0x41456e
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov eax, dword [esp + 0x6b0]
mov dword [esp + 0x6b0], ebx
test eax, eax
je 0x414588
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov eax, dword [esp + 0x8c8]
mov dword [esp + 0x8c8], ebx
test eax, eax
je 0x4145a2
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ecx, dword [esp + 0x280]
mov dword [esp + 0x280], ebx
test ecx, ecx
je 0x4145bc
push ecx
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x8dc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00416b30
mov esp, ebp
pop ebp
ret
mov eax, dword [0x436704]
jmp 0x41415b
and eax, 0xfffffffb
test al, 0x80
push 0
pop ecx
setne cl
inc ecx
or ecx, eax
cmp byte [0x436755], 0
mov dword [esi + 0x1c], ecx
jne 0x414223
jmp 0x41ff99
cmp dword [ecx + 0x20], eax
je 0x4142de
mov dword [0x4367a8], eax
mov ecx, dword [ecx + 0x20]
mov dword [0x43676c], edx
call fcn.00408f21
mov eax, dword [0x4367a8]
cmp eax, 0x15
je 0x4208d0
cmp eax, 0x458
je 0x4208d0
mov ecx, dword [esp + 0x30]
xor edx, edx
inc edx
jmp 0x4142de
cmp dword [esp + 0x54], 0
je 0x414662
xor eax, eax
mov dword [esp + 0x3c], eax
cmp edx, 0xffffffff
je 0x41465e
test dl, 0x10
jne 0x42014a
mov dword [esp + 0x54], eax
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x1c]
and eax, 0xfffffffb
cmp byte [0x436755], 0
mov dword [edi + 0x1c], eax
je 0x420157
cmp dword [esp + 0x3c], 0
je 0x414379
jmp 0x42019c
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x4146a1
test byte [eax + 0x1c], 8
jne 0x414737
cmp esi, 3
jne 0x414386
jmp 0x4201b2
cmp eax, 3
jne 0x414181
jmp 0x414165
test dword [edi + 0x1c], 0x400
jne 0x4146e2
mov ecx, dword [esp + 0x280]
test ecx, ecx
je 0x414750
call fcn.00415643
mov esi, dword [0x436704]
mov ebx, eax
mov dword [esp + 0x10], ebx
xor eax, eax
mov dword [esp + 0x40], eax
cmp ebx, 0xffffffff
je 0x4143a2
mov ecx, ebx
mov dword [esp + 0x50], 1
call fcn.0040dd98
test eax, eax
jne 0x4201cf
mov esi, dword [0x436704]
jmp 0x4143aa
mov eax, ecx
cmp esi, 3
jne 0x4143c7
jmp 0x420215
call fcn.0040a16c
mov eax, dword [esi + 0x1c]
or ecx, 0xffffffff
mov dword [esp + 0x10], ecx
jmp 0x41441c
xor eax, eax
cmp dword [edi + 0x20], eax
jne 0x4146a1
xor esi, esi
inc esi
mov dword [0x436704], esi
jmp 0x4146a1
lea ecx, [esp + 0x78]
jmp 0x4146d1
mov eax, dword [edi + 0x1c]
jmp 0x413f1b
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x28]
push 1
push eax
call fcn.0041522c
mov dword [esp + 0x34], eax
test eax, eax
je 0x4208ed
mov eax, dword [esp + 0x28]
mov dword [esp + 0x48], eax
jmp 0x4140cf
cmp dword [0x436704], 3
jne 0x42088c
cmp dword [0x43670c], 0
jne 0x42088c
mov esi, dword [esp + 0x14]
jmp 0x414532
lea edx, [esp + 0x6c0]
jmp 0x414129
mov ecx, dword [esp + 0x6b0]
test ecx, ecx
jne 0x41fea2
lea ecx, [esp + 0x4a8]
mov edx, dword [esi + 4]
call fcn.004295f2
test eax, eax
jne 0x41450e
jmp 0x4145d5
cmp dword [0x43670c], 0
je 0x4141d4
jmp 0x414181
lea eax, [esp + 0x78]
jmp 0x414190
mov eax, dword [esp + 0x280]
test eax, eax
jne 0x41fee1
lea eax, [esp + 0x78]
mov ecx, dword [esp + 0x6b0]
test ecx, ecx
jne 0x41fef3
lea ecx, [esp + 0x4a8]
mov edx, dword [esp + 0x6b8]
push eax
call fcn.0040f3a0
jmp 0x4141bc
lea eax, [esp + 0x78]
jmp 0x4141cb
mov ecx, dword [0x4367a8]
call fcn.00429edb
cmp dword [0x436704], 3
jne 0x41ff4b
cmp ebx, 0xffffffff
jne 0x41ff4b
mov ecx, dword [esp + 0x280]
test ecx, ecx
jne 0x41ff36
lea ecx, [esp + 0x78]
mov edx, dword [esi + 4]
call fcn.004295f2
test eax, eax
je 0x41ff4b
mov ecx, dword [esp + 0x1c]
jmp 0x4208ba
mov dword [esp + 0x38], 1
jmp 0x41450e
or dword [esi + 0x1c], 0x80
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x28], 0x80
test al, 1
je 0x414217
and eax, 0xfffffffe
or eax, 4
mov dword [esi + 0x1c], eax
jmp 0x414217
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x44], eax
jb 0x414208
mov ecx, eax
mov dword [esp + 0x28], eax
jmp 0x414210
cmp dword [0x43670c], 0
je 0x414223
test cl, 8
jne 0x414223
cmp dword [0x436704], 3
jne 0x414223
and ecx, 0xfffffffe
or ecx, 2
mov dword [esi + 0x1c], ecx
jmp 0x414223
lea ecx, [esp + 0x290]
jmp 0x414232
lea ecx, [esp + 0x78]
jmp 0x414252
mov ecx, dword [esp + 0x20]
call fcn.0040a16c
push 0x6e
pop ecx
call fcn.00429edb
cmp dword [0x436704], 3
jne 0x41ff4b
mov ecx, dword [esp + 0x1c]
jmp 0x4208ba
cmp dword [0x43670c], 0
jne 0x414291
mov edi, dword [esp + 0x14]
jmp 0x4143aa
lea eax, [esp + 0x78]
jmp 0x4142a0
lea edx, [esp + 0x290]
jmp 0x4142af
test byte [esi + 0x1c], 0x80
jne 0x4142c3
mov ecx, dword [esp + 0x20]
call fcn.0040a16c
push dword [esp + 0x1c]
mov edi, dword [esp + 0x28]
lea edx, [esp + 0x14]
push dword [esp + 0x2c]
push edi
push ecx
mov ecx, esi
call fcn.0042974b
cmp dword [0x43670c], 0
je 0x42008f
cmp dword [0x436704], 3
jne 0x420087
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x2c]
and eax, 0xfffffffe
test ecx, ecx
jne 0x420082
or eax, 2
jmp 0x420084
or eax, ecx
mov dword [esi + 0x1c], eax
mov dword [esp + 0x5c], 1
push dword [esi + 0x1c]
lea edx, [esp + 0x1c]
mov ecx, edi
call fcn.00414c75
mov ebx, dword [esp + 0x10]
xor eax, eax
mov dword [0x43670c], eax
jmp 0x41450e
lea eax, [esp + 0x78]
jmp 0x4142ed
lea ecx, [esp + 0x78]
jmp 0x414319
mov ecx, dword [esp + 0x20]
call fcn.0040a16c
jmp 0x41450e
lea eax, [esp + 0x78]
jmp 0x41432c
lea edx, [esp + 0x290]
jmp 0x41433b
test byte [esi + 0x1c], 0x80
jne 0x41434b
mov ecx, dword [esp + 0x20]
call fcn.0040a16c
cmp dword [0x43670c], 0
je 0x420120
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x420120
test byte [eax + 0x1c], 8
je 0x420120
xor eax, eax
cmp dword [esi + 0x20], eax
jne 0x420120
mov dword [0x436704], 1
push dword [esp + 0x1c]
lea edx, [esp + 0x14]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.0042974b
mov ebx, dword [esp + 0x10]
jmp 0x41434b
lea eax, [esp + 0x78]
jmp 0x41435a
mov dword [esp + 0x3c], 1
jmp 0x41465e
test al, 8
je 0x41467c
cmp esi, 3
jne 0x41467c
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x58], esi
jne 0x414379
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 0x20]
test ecx, ecx
je 0x42018d
test byte [ecx + 0x1c], 8
je 0x42018d
or eax, 1
jmp 0x420190
or eax, 2
mov ecx, dword [esp + 0x2c]
mov dword [edi + 0x1c], eax
jmp 0x414379
cmp dword [esp + 0x58], 3
jne 0x414379
or eax, 1
mov dword [edi + 0x1c], eax
jmp 0x414379
test ecx, ecx
jne 0x4201c7
mov eax, dword [edi + 0x1c]
and eax, 0xfffffffe
or eax, 2
mov dword [edi + 0x1c], eax
jmp 0x414386
mov dword [edi + 0x1c], ecx
jmp 0x414386
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x40], 1
jne 0x414708
mov eax, dword [edi + 0x1c]
and eax, 0xfffffffe
or eax, 2
mov dword [edi + 0x1c], eax
jmp 0x414708
cmp esi, 3
jne 0x4143b9
mov eax, dword [edi + 0x1c]
and eax, 0xfffffffe
test edx, edx
jne 0x42020b
or eax, 2
jmp 0x42020d
or eax, edx
mov dword [edi + 0x1c], eax
jmp 0x4143b9
mov eax, ecx
test edx, edx
jne 0x4143c7
and eax, 0xfffffffe
or eax, 2
mov dword [edi + 0x1c], eax
jmp 0x4143c7
cmp dword [esp + 0x3c], 0
mov ecx, eax
jne 0x4143d6
test edx, edx
jne 0x4143d6
and ecx, 0xfffffffe
or ecx, 2
mov dword [edi + 0x1c], ecx
jmp 0x4143d6
mov ecx, dword [esi + 4]
call fcn.00429ff8
test eax, eax
jne 0x420278
mov ecx, dword [esp + 0x280]
test ecx, ecx
jne 0x42026b
lea ecx, [esp + 0x78]
call fcn.00429ff8
test eax, eax
jne 0x420278
mov edx, eax
jmp 0x42027b
xor edx, edx
inc edx
mov ecx, dword [esp + 0x280]
test ecx, ecx
jne 0x42028a
lea ecx, [esp + 0x78]
mov eax, dword [esp + 0x4c]
or eax, edi
xor edi, edi
or eax, 2
push eax
push edi
push edx
push 0x428aa0
push ecx
push dword [esi + 4]
mov esi, dword [0x4325b8]
mov ecx, esi
call dword [0x44a4c4]
call esi
jmp 0x414468
mov eax, dword [esp + 0x280]
test eax, eax
jne 0x4202c5
lea eax, [esp + 0x78]
push dword [esp + 0x4c]
mov esi, dword [esp + 0x18]
push eax
push dword [esi + 4]
call dword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_CopyFileW]
xor edi, edi
jmp 0x41446c
lea ecx, [esp + 0x78]
jmp 0x414444
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [0x4367a8], eax
cmp eax, 1
jne 0x420310
test ebx, ebx
je 0x420310
mov eax, dword [esi + 0x18]
test dword [eax], 0x400
je 0x420310
mov dword [0x4367a8], 0x40002730
mov ecx, dword [esp + 0x20]
call fcn.0040a16c
mov eax, dword [esp + 0x40]
mov esi, eax
mov ecx, dword [0x4367a8]
neg esi
mov dword [0x4367a0], edi
sbb esi, esi
and esi, 0x1d
test ecx, ecx
jne 0x42033f
push 0x70
pop ecx
mov dword [0x4367a8], ecx
cmp dword [0x43259c], 0
je 0x42034c
mov esi, edi
jmp 0x420355
test eax, eax
jne 0x420355
call fcn.00429edb
cmp dword [esp + 0x50], 0
jne 0x4208c6
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x38], 1
jmp 0x41450e
lea eax, [esp + 0x78]
jmp 0x41448a
lea ecx, [esp + 0x78]
jmp 0x4144a5
mov ecx, dword [esp + 0x280]
test ecx, ecx
jne 0x420396
lea ecx, [esp + 0x78]
push ecx
xor edx, edx
push ecx
inc edx
call fcn.0041654b
mov ebx, eax
mov dword [esp + 0x10], ebx
cmp ebx, 0xffffffff
je 0x420517
mov ecx, ebx
call fcn.0040dd98
test eax, eax
jne 0x42054f
push ebx
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FlushFileBuffers]
test eax, eax
je 0x420562
mov ecx, ebx
call fcn.0040a16c
mov ecx, dword [esp + 0x280]
test ecx, ecx
jne 0x4203eb
lea ecx, [esp + 0x78]
push ecx
push ecx
xor edx, edx
call fcn.0041654b
mov ebx, eax
mov dword [esp + 0x10], ebx
cmp ebx, 0xffffffff
je 0x420517
mov ecx, ebx
call fcn.0040dd98
test eax, eax
jne 0x420562
mov esi, dword [esp + 0x20]
push edi
push edi
push edi
push esi
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
push edi
push edi
push edi
push ebx
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
lea eax, [esp + 0x60]
push eax
push esi
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSize]
mov esi, eax
lea eax, [esp + 0x64]
push eax
push ebx
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSize]
cmp esi, eax
jne 0x4205a9
mov eax, dword [esp + 0x60]
cmp eax, dword [esp + 0x64]
jne 0x4205a9
mov esi, edi
mov edi, dword [esp + 0x28]
xor eax, eax
push eax
lea eax, [esp + 0x1c]
push eax
push edi
push dword [esp + 0x30]
push dword [esp + 0x30]
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x420507
cmp dword [esp + 0x18], 0
je 0x420507
xor eax, eax
push eax
lea eax, [esp + 0x6c]
push eax
push dword [esp + 0x20]
push dword [esp + 0x40]
push ebx
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x42058e
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x68], eax
jne 0x42058e
cmp edi, eax
je 0x4204e6
xor esi, esi
inc esi
push eax
push dword [esp + 0x38]
push dword [esp + 0x2c]
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x42058e
test esi, esi
je 0x420480
mov ecx, ebx
call fcn.0040a16c
or ebx, 0xffffffff
mov dword [esp + 0x10], ebx
jmp 0x420583
mov eax, dword [esp + 0x280]
test eax, eax
jne 0x420526
lea eax, [esp + 0x78]
push eax
push 1
push 0x4000271f
call fcn.004078e4
add esp, 0xc
jmp 0x4144c1
lea eax, [esp + 0x78]
push eax
push 1
push 0x4000271f
call fcn.004078e4
add esp, 0xc
mov ecx, ebx
call fcn.0040a16c
or ebx, 0xffffffff
mov dword [esp + 0x10], ebx
jmp 0x4144c1
mov eax, dword [esp + 0x280]
test eax, eax
jne 0x42053f
jmp 0x42053b
lea eax, [esp + 0x78]
push eax
push 1
push 0x4000271f
call fcn.004078e4
add esp, 0xc
mov esi, dword [esp + 0x14]
xor edi, edi
jmp 0x4144c1
mov ecx, ebx
call fcn.0040a16c
mov eax, dword [esp + 0x280]
or ebx, 0xffffffff
mov dword [esp + 0x10], ebx
test eax, eax
jne 0x420573
jmp 0x42056f
mov eax, dword [esp + 0x280]
test eax, eax
jne 0x4205b8
lea eax, [esp + 0x78]
push eax
push 1
push 0x4000271f
call fcn.004078e4
add esp, 0xc
mov ecx, ebx
call fcn.0040a16c
mov esi, dword [esp + 0x14]
or ebx, 0xffffffff
mov dword [esp + 0x10], ebx
jmp 0x4144c1
cmp ebx, 0xffffffff
je 0x420646
push ebx
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetEndOfFile]
cmp dword [0x43670c], 0
jne 0x42062c
cmp dword [0x436704], 3
jne 0x42062c
mov eax, dword [esi + 0x1c]
mov ecx, 0x4002
and eax, ecx
cmp eax, ecx
jne 0x42062c
mov eax, dword [esp + 0x18]
sub eax, 2
push eax
mov dword [esp + 0x1c], eax
lea eax, [edi + 2]
push eax
push edi
call sub.msvcrt.dll_memmove
add esp, 0xc
mov edx, 0x4000
test dword [esi + 0x1c], edx
je 0x4206a0
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x42069d
or dword [eax + 0x1c], edx
jmp 0x4206a0
mov ecx, dword [esp + 0x280]
test ecx, ecx
jne 0x420655
lea ecx, [esp + 0x78]
push ecx
xor edx, edx
push ecx
inc edx
call fcn.0041654b
mov ebx, eax
mov dword [esp + 0x10], ebx
cmp ebx, 0xffffffff
jne 0x4205f3
mov ecx, dword [esp + 0x20]
call fcn.0040a16c
cmp dword [0x436768], 0
jne 0x420687
mov ecx, dword [0x4367a8]
call fcn.00429edb
cmp dword [0x436704], 3
jne 0x41ff4b
mov ecx, dword [esp + 0x1c]
jmp 0x4208ba
or dword [ecx + 0x1c], edx
mov eax, dword [0x4367a0]
test eax, eax
je 0x42072d
cmp dword [esp + 0x18], 0
jle 0x420587
mov eax, dword [esp + 0x280]
test eax, eax
jne 0x4206c7
lea eax, [esp + 0x78]
push dword [esp + 0x20]
mov edx, edi
mov ecx, ebx
push eax
push dword [esp + 0x20]
call fcn.00429809
cmp dword [0x436708], 0
je 0x420587
mov ecx, ebx
call fcn.0040dd98
test eax, eax
jne 0x420587
mov edx, dword [esp + 0x280]
test edx, edx
jne 0x420704
lea edx, [esp + 0x78]
push dword [esp + 0x34]
lea ecx, [esp + 0x14]
push edi
push dword [esp + 0x20]
call fcn.00428b6c
cmp eax, 1
jne 0x420724
mov ecx, dword [esp + 0x1c]
jmp 0x4208ba
mov ebx, dword [esp + 0x10]
jmp 0x420587
mov ecx, dword [esp + 0x6c]
mov edi, dword [esp + 0x20]
cmp ecx, 1
jne 0x4207d8
mov eax, dword [esp + 0x280]
test eax, eax
jne 0x42074d
lea eax, [esp + 0x78]
mov edx, dword [esp + 0x24]
mov ecx, ebx
push edi
push eax
push dword [esp + 0x20]
call fcn.00429809
cmp dword [0x436708], 0
je 0x4207a3
mov ecx, ebx
call fcn.0040dd98
test eax, eax
jne 0x4207a3
mov edx, dword [esp + 0x280]
test edx, edx
jne 0x420781
lea edx, [esp + 0x78]
push dword [esp + 0x34]
lea ecx, [esp + 0x14]
push dword [esp + 0x28]
push dword [esp + 0x20]
call fcn.00428b6c
cmp eax, 1
je 0x4208b6
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x280]
test eax, eax
jne 0x4207b2
lea eax, [esp + 0x78]
mov edx, dword [esp + 0x24]
mov ecx, edi
push eax
push ebx
push esi
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x38]
call fcn.00414ca0
mov ecx, eax
mov eax, dword [0x4367a0]
test eax, eax
je 0x420735
test eax, eax
je 0x420587
cmp dword [esp + 0x18], 0
jle 0x420587
cmp ecx, 1
jne 0x420587
mov eax, dword [esp + 0x280]
test eax, eax
jne 0x420803
lea eax, [esp + 0x78]
push edi
mov edi, dword [esp + 0x28]
mov ecx, ebx
push eax
push dword [esp + 0x20]
mov edx, edi
call fcn.00429809
cmp dword [0x436708], 0
je 0x420587
mov ecx, ebx
call fcn.0040dd98
test eax, eax
jne 0x420587
mov edx, dword [esp + 0x280]
test edx, edx
jne 0x420841
lea edx, [esp + 0x78]
push dword [esp + 0x34]
lea ecx, [esp + 0x14]
push edi
push dword [esp + 0x20]
call fcn.00428b6c
cmp eax, 1
jne 0x420724
mov ecx, dword [esp + 0x1c]
jmp 0x4208ba
mov ecx, ebx
call fcn.0040a16c
mov eax, dword [esp + 0x280]
test eax, eax
jne 0x420878
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
mov dword [esp + 0x38], 1
jmp 0x414508
push dword [edi]
push 0x403a84
call fcn.00409950
push 0x401f8c
call fcn.00409950
mov ecx, dword [0x4367a8]
add esp, 0xc
call fcn.00429edb
mov ecx, dword [esp + 0x1c]
jmp 0x4208ba
mov ecx, dword [esp + 0x1c]
call fcn.00408b4d
xor edx, edx
inc edx
xor ecx, ecx
jmp 0x4208cb
xor edx, edx
mov ecx, esi
inc edx
call fcn.00428c50
xor ecx, ecx
push ecx
push eax
call fcn.004063bd
pop ecx
pop ecx
mov ecx, dword [esp + 0x20]
call fcn.0040a16c
mov ecx, dword [esp + 0x1c]
call fcn.00408b4d
lea ecx, [esp + 0x290]
call fcn.004161e6
lea ecx, [esp + 0x4a8]
call fcn.004161e6
lea ecx, [esp + 0x6c0]
call fcn.004161e6
lea ecx, [esp + 0x78]
call fcn.004161e6
xor eax, eax
inc eax
jmp 0x4145c0
mov ecx, dword [esp + 0x1c]
call fcn.00408b4d
cmp ebx, 0xffffffff
je 0x4208ed
mov ecx, ebx
call fcn.0040a16c
jmp 0x4208ed
cmp ebx, 0xffffffff
je 0x414552
xor eax, eax
mov edx, edi
push eax
push ebx
mov ecx, esi
call fcn.00414c40
jmp 0x414552