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 [0x42d0b4]
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 0x41fdee
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 0x4208ab
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 0x4208ab
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 0x4208ab
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 0x4208ab
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 0x4208ab
cmp dword [0x435708], 0
jne 0x41fdf6
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 0x41fe1f
mov esi, edi
cmp dword [0x43159c], 0
jne 0x4208e0
mov edx, dword [esp + 0x8c8]
test edx, edx
je 0x41fe42
push dword [esp + 0x8d0]
mov ecx, esi
call fcn.00414d28
cmp eax, 1
je 0x4208a2
cmp dword [0x43570c], 0
jne 0x4145d5
mov eax, dword [0x435704]
cmp eax, 3
je 0x41fe4e
test byte [esi + 0x1c], 8
je 0x4146af
push dword [esi + 4]
push 0x402280
call fcn.00409950
cmp dword [0x435704], 3
pop ecx
pop ecx
je 0x41fe75
mov eax, dword [esp + 0x280]
test eax, eax
je 0x41fe87
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 0x4208a2
cmp dword [0x435704], 3
je 0x41fe90
mov eax, dword [esp + 0x280]
test eax, eax
je 0x41fec3
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 0x41fecc
mov ecx, eax
call fcn.0040dd98
test eax, eax
jne 0x41ff16
cmp dword [0x435708], eax
jne 0x41ff3e
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 0x41ff88
push dword [esi + 4]
mov edx, dword [esp + 0x4a4]
call fcn.00411cd5
mov ecx, dword [esp + 0x280]
mov edi, eax
test ecx, ecx
je 0x41ff94
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 [0x4357a8], 0
mov dword [esp + 0x6c], eax
jne 0x41ff9d
mov esi, dword [0x435704]
cmp esi, 3
je 0x41ffc4
mov eax, dword [esp + 0x280]
test eax, eax
je 0x41ffda
mov edx, dword [esp + 0x498]
test edx, edx
je 0x41ffe3
push eax
mov ecx, edi
call fcn.00413aef
mov esi, dword [esp + 0x14]
test eax, eax
jne 0x41ffef
mov ecx, dword [esp + 0x30]
xor edx, edx
inc edx
xor eax, eax
mov dword [0x435770], edx
cmp dword [0x43570c], eax
jne 0x414602
mov eax, dword [esp + 0x280]
test eax, eax
je 0x42006b
push edx
push dword [esp + 0x28c]
mov edx, ecx
mov ecx, esi
push eax
call fcn.00413cd0
cmp eax, 1
je 0x420899
mov eax, dword [esp + 0x280]
mov ecx, eax
test eax, eax
je 0x420074
xor edx, edx
cmp word [ecx], dx
je 0x42007d
test eax, eax
je 0x42008b
mov edx, dword [esp + 0x498]
test edx, edx
je 0x420094
push eax
mov ecx, edi
call fcn.00413aef
test eax, eax
jne 0x4200a0
mov eax, dword [esp + 0x280]
test eax, eax
je 0x4200ff
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 [0x435704]
test ecx, ecx
je 0x414643
mov edi, dword [esp + 0x14]
cmp dword [0x43570c], 0
jne 0x41468c
test dl, 6
je 0x4146bd
or ebx, 0xffffffff
mov dword [0x4357a8], 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 0x4201b1
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 0x4201eb
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 0x42059d
mov eax, dword [esi + 0x1c]
test al, 1
je 0x42059d
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 0x42020e
mov esi, dword [0x4315b8]
test esi, esi
je 0x420274
mov ecx, dword [esp + 0x280]
test ecx, ecx
je 0x42029c
mov eax, dword [esp + 0x4c]
or eax, edi
mov edi, dword [esp + 0x14]
push eax
push 0x43159c
xor eax, eax
push eax
push eax
push ecx
push dword [edi + 4]
mov ecx, esi
call dword [0x4494c4]
call esi
xor edi, edi
mov esi, dword [esp + 0x14]
test eax, eax
je 0x4202a5
cmp dword [esp + 0x40], 0
jne 0x4144bd
mov eax, dword [esp + 0x280]
test eax, eax
je 0x420333
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 0x42033c
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
cmp dword [0x435708], 0
jne 0x420345
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0x18]
mov dword [0x4357a0], 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 [0x435704], 3
je 0x414508
cmp dword [0x43159c], 0
jne 0x420820
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x70]
push eax
push ebx
mov ecx, esi
call fcn.00414c40
mov dword [0x43570c], 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 [0x435704], 3
je 0x4208f7
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.00416b50
mov esp, ebp
pop ebp
ret
mov eax, dword [0x435704]
jmp 0x41415b
and eax, 0xfffffffb
test al, 0x80
push 0
pop ecx
setne cl
inc ecx
or ecx, eax
cmp byte [0x435755], 0
mov dword [esi + 0x1c], ecx
jne 0x414223
jmp 0x41ff57
cmp dword [ecx + 0x20], eax
je 0x4142de
mov dword [0x4357a8], eax
mov ecx, dword [ecx + 0x20]
mov dword [0x43576c], edx
call fcn.00408f21
mov eax, dword [0x4357a8]
cmp eax, 0x15
je 0x42088e
cmp eax, 0x458
je 0x42088e
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 0x420108
mov dword [esp + 0x54], eax
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x1c]
and eax, 0xfffffffb
cmp byte [0x435755], 0
mov dword [edi + 0x1c], eax
je 0x420115
cmp dword [esp + 0x3c], 0
je 0x414379
jmp 0x42015a
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 0x420170
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 [0x435704]
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 0x42018d
mov esi, dword [0x435704]
jmp 0x4143aa
mov eax, ecx
cmp esi, 3
jne 0x4143c7
jmp 0x4201d3
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 [0x435704], 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 0x4208ab
mov eax, dword [esp + 0x28]
mov dword [esp + 0x48], eax
jmp 0x4140cf
cmp dword [0x435704], 3
jne 0x42084a
cmp dword [0x43570c], 0
jne 0x42084a
mov esi, dword [esp + 0x14]
jmp 0x414532
lea edx, [esp + 0x6c0]
jmp 0x414129
mov ecx, dword [esp + 0x6b0]
test ecx, ecx
jne 0x41fe60
lea ecx, [esp + 0x4a8]
mov edx, dword [esi + 4]
call fcn.004295b4
test eax, eax
jne 0x41450e
jmp 0x4145d5
cmp dword [0x43570c], 0
je 0x4141d4
jmp 0x414181
lea eax, [esp + 0x78]
jmp 0x414190
mov eax, dword [esp + 0x280]
test eax, eax
jne 0x41fe9f
lea eax, [esp + 0x78]
mov ecx, dword [esp + 0x6b0]
test ecx, ecx
jne 0x41feb1
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 [0x4357a8]
call fcn.00429e9d
cmp dword [0x435704], 3
jne 0x41ff09
cmp ebx, 0xffffffff
jne 0x41ff09
mov ecx, dword [esp + 0x280]
test ecx, ecx
jne 0x41fef4
lea ecx, [esp + 0x78]
mov edx, dword [esi + 4]
call fcn.004295b4
test eax, eax
je 0x41ff09
mov ecx, dword [esp + 0x1c]
jmp 0x420878
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 [0x43570c], 0
je 0x414223
test cl, 8
jne 0x414223
cmp dword [0x435704], 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.00429e9d
cmp dword [0x435704], 3
jne 0x41ff09
mov ecx, dword [esp + 0x1c]
jmp 0x420878
cmp dword [0x43570c], 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.0042970d
cmp dword [0x43570c], 0
je 0x42004d
cmp dword [0x435704], 3
jne 0x420045
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x2c]
and eax, 0xfffffffe
test ecx, ecx
jne 0x420040
or eax, 2
jmp 0x420042
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 [0x43570c], 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 [0x43570c], 0
je 0x4200de
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x4200de
test byte [eax + 0x1c], 8
je 0x4200de
xor eax, eax
cmp dword [esi + 0x20], eax
jne 0x4200de
mov dword [0x435704], 1
push dword [esp + 0x1c]
lea edx, [esp + 0x14]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.0042970d
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 0x42014b
test byte [ecx + 0x1c], 8
je 0x42014b
or eax, 1
jmp 0x42014e
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 0x420185
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 0x4201c9
or eax, 2
jmp 0x4201cb
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.00429fb8
test eax, eax
jne 0x420236
mov ecx, dword [esp + 0x280]
test ecx, ecx
jne 0x420229
lea ecx, [esp + 0x78]
call fcn.00429fb8
test eax, eax
jne 0x420236
mov edx, eax
jmp 0x420239
xor edx, edx
inc edx
mov ecx, dword [esp + 0x280]
test ecx, ecx
jne 0x420248
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 0x428a60
push ecx
push dword [esi + 4]
mov esi, dword [0x4315b8]
mov ecx, esi
call dword [0x4494c4]
call esi
jmp 0x414468
mov eax, dword [esp + 0x280]
test eax, eax
jne 0x420283
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 [0x4357a8], eax
cmp eax, 1
jne 0x4202ce
test ebx, ebx
je 0x4202ce
mov eax, dword [esi + 0x18]
test dword [eax], 0x400
je 0x4202ce
mov dword [0x4357a8], 0x40002730
mov ecx, dword [esp + 0x20]
call fcn.0040a16c
mov eax, dword [esp + 0x40]
mov esi, eax
mov ecx, dword [0x4357a8]
neg esi
mov dword [0x4357a0], edi
sbb esi, esi
and esi, 0x1d
test ecx, ecx
jne 0x4202fd
push 0x70
pop ecx
mov dword [0x4357a8], ecx
cmp dword [0x43159c], 0
je 0x42030a
mov esi, edi
jmp 0x420313
test eax, eax
jne 0x420313
call fcn.00429e9d
cmp dword [esp + 0x50], 0
jne 0x420884
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 0x420354
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 0x4204d5
mov ecx, ebx
call fcn.0040dd98
test eax, eax
jne 0x42050d
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 0x420520
mov ecx, ebx
call fcn.0040a16c
mov ecx, dword [esp + 0x280]
test ecx, ecx
jne 0x4203a9
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 0x4204d5
mov ecx, ebx
call fcn.0040dd98
test eax, eax
jne 0x420520
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 0x420567
mov eax, dword [esp + 0x60]
cmp eax, dword [esp + 0x64]
jne 0x420567
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 0x4204c5
cmp dword [esp + 0x18], 0
je 0x4204c5
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 0x42054c
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x68], eax
jne 0x42054c
cmp edi, eax
je 0x4204a4
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 0x42054c
test esi, esi
je 0x42043e
mov ecx, ebx
call fcn.0040a16c
or ebx, 0xffffffff
mov dword [esp + 0x10], ebx
jmp 0x420541
mov eax, dword [esp + 0x280]
test eax, eax
jne 0x4204e4
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 0x4204fd
jmp 0x4204f9
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 0x420531
jmp 0x42052d
mov eax, dword [esp + 0x280]
test eax, eax
jne 0x420576
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 0x420604
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 [0x43570c], 0
jne 0x4205ea
cmp dword [0x435704], 3
jne 0x4205ea
mov eax, dword [esi + 0x1c]
mov ecx, 0x4002
and eax, ecx
cmp eax, ecx
jne 0x4205ea
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 0x42065e
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x42065b
or dword [eax + 0x1c], edx
jmp 0x42065e
mov ecx, dword [esp + 0x280]
test ecx, ecx
jne 0x420613
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 0x4205b1
mov ecx, dword [esp + 0x20]
call fcn.0040a16c
cmp dword [0x435768], 0
jne 0x420645
mov ecx, dword [0x4357a8]
call fcn.00429e9d
cmp dword [0x435704], 3
jne 0x41ff09
mov ecx, dword [esp + 0x1c]
jmp 0x420878
or dword [ecx + 0x1c], edx
mov eax, dword [0x4357a0]
test eax, eax
je 0x4206eb
cmp dword [esp + 0x18], 0
jle 0x420545
mov eax, dword [esp + 0x280]
test eax, eax
jne 0x420685
lea eax, [esp + 0x78]
push dword [esp + 0x20]
mov edx, edi
mov ecx, ebx
push eax
push dword [esp + 0x20]
call fcn.004297cb
cmp dword [0x435708], 0
je 0x420545
mov ecx, ebx
call fcn.0040dd98
test eax, eax
jne 0x420545
mov edx, dword [esp + 0x280]
test edx, edx
jne 0x4206c2
lea edx, [esp + 0x78]
push dword [esp + 0x34]
lea ecx, [esp + 0x14]
push edi
push dword [esp + 0x20]
call fcn.00428b2c
cmp eax, 1
jne 0x4206e2
mov ecx, dword [esp + 0x1c]
jmp 0x420878
mov ebx, dword [esp + 0x10]
jmp 0x420545
mov ecx, dword [esp + 0x6c]
mov edi, dword [esp + 0x20]
cmp ecx, 1
jne 0x420796
mov eax, dword [esp + 0x280]
test eax, eax
jne 0x42070b
lea eax, [esp + 0x78]
mov edx, dword [esp + 0x24]
mov ecx, ebx
push edi
push eax
push dword [esp + 0x20]
call fcn.004297cb
cmp dword [0x435708], 0
je 0x420761
mov ecx, ebx
call fcn.0040dd98
test eax, eax
jne 0x420761
mov edx, dword [esp + 0x280]
test edx, edx
jne 0x42073f
lea edx, [esp + 0x78]
push dword [esp + 0x34]
lea ecx, [esp + 0x14]
push dword [esp + 0x28]
push dword [esp + 0x20]
call fcn.00428b2c
cmp eax, 1
je 0x420874
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x280]
test eax, eax
jne 0x420770
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 [0x4357a0]
test eax, eax
je 0x4206f3
test eax, eax
je 0x420545
cmp dword [esp + 0x18], 0
jle 0x420545
cmp ecx, 1
jne 0x420545
mov eax, dword [esp + 0x280]
test eax, eax
jne 0x4207c1
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.004297cb
cmp dword [0x435708], 0
je 0x420545
mov ecx, ebx
call fcn.0040dd98
test eax, eax
jne 0x420545
mov edx, dword [esp + 0x280]
test edx, edx
jne 0x4207ff
lea edx, [esp + 0x78]
push dword [esp + 0x34]
lea ecx, [esp + 0x14]
push edi
push dword [esp + 0x20]
call fcn.00428b2c
cmp eax, 1
jne 0x4206e2
mov ecx, dword [esp + 0x1c]
jmp 0x420878
mov ecx, ebx
call fcn.0040a16c
mov eax, dword [esp + 0x280]
test eax, eax
jne 0x420836
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 [0x4357a8]
add esp, 0xc
call fcn.00429e9d
mov ecx, dword [esp + 0x1c]
jmp 0x420878
mov ecx, dword [esp + 0x1c]
call fcn.00408b4d
xor edx, edx
inc edx
xor ecx, ecx
jmp 0x420889
xor edx, edx
mov ecx, esi
inc edx
call fcn.00428c10
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 0x4208ab
mov ecx, ebx
call fcn.0040a16c
jmp 0x4208ab
cmp ebx, 0xffffffff
je 0x414552
xor eax, eax
mov edx, edi
push eax
push ebx
mov ecx, esi
call fcn.00414c40
jmp 0x414552