Function at 0x413e33
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 0x41fcd3
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.0040e330
test eax, eax
js 0x420790
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.0040e330
test eax, eax
js 0x420790
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.0040e330
test eax, eax
js 0x420790
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.0040e330
test eax, eax
js 0x420790
push 0x40233c
lea ecx, [esp + 0x4ac]
call fcn.0040a586
xor eax, eax
mov ecx, 0xfe00
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004151ae
mov dword [esp + 0x24], eax
test eax, eax
je 0x420790
cmp dword [0x4356f8], 0
jne 0x41fcdb
mov esi, dword [esi + 0x20]
mov dword [esp + 0x14], esi
test esi, esi
je 0x4144c5
mov edi, dword [esp + 0x14]
mov esi, dword [esi + 0x18]
mov ecx, dword [edi]
call fcn.0040ffb0
lea ecx, [esp + 0x1c]
mov edx, eax
push ecx
push esi
xor ecx, ecx
push ecx
push 0x21
mov ecx, fcn.00415950
call fcn.0041581a
test al, al
je 0x41fd04
mov esi, edi
cmp dword [0x43158c], 0
jne 0x4207c5
mov edx, dword [esp + 0x8c8]
test edx, edx
je 0x41fd27
push dword [esp + 0x8d0]
mov ecx, esi
call fcn.00414ca8
cmp eax, 1
je 0x420787
cmp dword [0x4356fc], 0
jne 0x414555
mov eax, dword [0x4356f4]
cmp eax, 3
je 0x41fd33
test byte [esi + 0x1c], 8
je 0x41462f
push dword [esi + 4]
push 0x402270
call fcn.00409890
cmp dword [0x4356f4], 3
pop ecx
pop ecx
je 0x41fd5a
mov eax, dword [esp + 0x280]
test eax, eax
je 0x41fd6c
mov edx, dword [esp + 0x30]
xor edi, edi
push edi
push dword [esp + 0x28c]
mov ecx, esi
push eax
call fcn.00413c50
cmp eax, 1
je 0x420787
cmp dword [0x4356f4], 3
je 0x41fd75
mov eax, dword [esp + 0x280]
test eax, eax
je 0x41fda8
cmp word [eax], di
je 0x41448e
push ecx
push ecx
mov ecx, dword [esi + 4]
xor edx, edx
call fcn.004164cb
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
je 0x41fdb1
mov ecx, eax
call fcn.0040dcd8
test eax, eax
jne 0x41fdfb
cmp dword [0x4356f8], eax
jne 0x41fe23
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x28], ecx
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x48], ecx
test al, 4
jne 0x41455f
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x498]
test ecx, ecx
je 0x41fe6d
push dword [esi + 4]
mov edx, dword [esp + 0x4a4]
call fcn.00411c55
mov ecx, dword [esp + 0x280]
mov edi, eax
test ecx, ecx
je 0x41fe79
call fcn.0040ffb0
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.00414c20
cmp dword [0x435798], 0
mov dword [esp + 0x6c], eax
jne 0x41fe82
mov esi, dword [0x4356f4]
cmp esi, 3
je 0x41fea9
mov eax, dword [esp + 0x280]
test eax, eax
je 0x41febf
mov edx, dword [esp + 0x498]
test edx, edx
je 0x41fec8
push eax
mov ecx, edi
call fcn.00413a6f
mov esi, dword [esp + 0x14]
test eax, eax
jne 0x41fed4
mov ecx, dword [esp + 0x30]
xor edx, edx
inc edx
xor eax, eax
mov dword [0x435760], edx
cmp dword [0x4356fc], eax
jne 0x414582
mov eax, dword [esp + 0x280]
test eax, eax
je 0x41ff50
push edx
push dword [esp + 0x28c]
mov edx, ecx
mov ecx, esi
push eax
call fcn.00413c50
cmp eax, 1
je 0x42077e
mov eax, dword [esp + 0x280]
mov ecx, eax
test eax, eax
je 0x41ff59
xor edx, edx
cmp word [ecx], dx
je 0x41ff62
test eax, eax
je 0x41ff70
mov edx, dword [esp + 0x498]
test edx, edx
je 0x41ff79
push eax
mov ecx, edi
call fcn.00413a6f
test eax, eax
jne 0x41ff85
mov eax, dword [esp + 0x280]
test eax, eax
je 0x41ffe4
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 [0x4356f4]
test ecx, ecx
je 0x4145c3
mov edi, dword [esp + 0x14]
cmp dword [0x4356fc], 0
jne 0x41460c
test dl, 6
je 0x41463d
or ebx, 0xffffffff
mov dword [0x435798], 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 0x420096
mov ecx, dword [edi + 0x1c]
mov eax, ecx
test cl, 8
je 0x414693
mov ecx, eax
test al, 8
je 0x414356
cmp esi, 3
je 0x4200d0
mov edi, dword [esp + 0x24]
lea edx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.00414bf5
cmp esi, 3
mov esi, dword [esp + 0x14]
je 0x420482
mov eax, dword [esi + 0x1c]
test al, 1
je 0x420482
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 0x4146a3
test eax, 0x400
jne 0x4200f3
mov esi, dword [0x4315a8]
test esi, esi
je 0x420159
mov ecx, dword [esp + 0x280]
test ecx, ecx
je 0x420181
mov eax, dword [esp + 0x4c]
or eax, edi
mov edi, dword [esp + 0x14]
push eax
push 0x43158c
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 0x42018a
cmp dword [esp + 0x40], 0
jne 0x41443d
mov eax, dword [esp + 0x280]
test eax, eax
je 0x420218
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x414430
mov ecx, dword [esp + 0x280]
test ecx, ecx
je 0x420221
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
cmp dword [0x4356f8], 0
jne 0x42022a
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0x18]
mov dword [0x435790], 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.0040a0ab
cmp dword [0x4356f4], 3
je 0x414488
cmp dword [0x43158c], 0
jne 0x420705
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x70]
push eax
push ebx
mov ecx, esi
call fcn.00414bc0
mov dword [0x4356fc], edi
push dword [esp + 0x1c]
mov edx, dword [esi + 0x18]
mov ecx, fcn.00415950
push 0x21
call fcn.004157d1
test al, al
jne 0x41408d
mov ecx, dword [esp + 0x1c]
call fcn.00408a9a
mov esi, dword [esi + 0x20]
mov dword [esp + 0x14], esi
test esi, esi
jne 0x41405e
mov edi, dword [esp + 0x30]
cmp dword [0x4356f4], 3
je 0x4207dc
mov eax, dword [esp + 0x498]
xor ebx, ebx
mov dword [esp + 0x498], ebx
test eax, eax
je 0x4144ee
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 0x414508
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 0x414522
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 0x41453c
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.00416ad0
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4356f4]
jmp 0x4140db
and eax, 0xfffffffb
test al, 0x80
push 0
pop ecx
setne cl
inc ecx
or ecx, eax
cmp byte [0x435745], 0
mov dword [esi + 0x1c], ecx
jne 0x4141a3
jmp 0x41fe3c
cmp dword [ecx + 0x20], eax
je 0x41425e
mov dword [0x435798], eax
mov ecx, dword [ecx + 0x20]
mov dword [0x43575c], edx
call fcn.00408e6e
mov eax, dword [0x435798]
cmp eax, 0x15
je 0x420773
cmp eax, 0x458
je 0x420773
mov ecx, dword [esp + 0x30]
xor edx, edx
inc edx
jmp 0x41425e
cmp dword [esp + 0x54], 0
je 0x4145e2
xor eax, eax
mov dword [esp + 0x3c], eax
cmp edx, 0xffffffff
je 0x4145de
test dl, 0x10
jne 0x41ffed
mov dword [esp + 0x54], eax
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x1c]
and eax, 0xfffffffb
cmp byte [0x435745], 0
mov dword [edi + 0x1c], eax
je 0x41fffa
cmp dword [esp + 0x3c], 0
je 0x4142f9
jmp 0x42003f
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x414621
test byte [eax + 0x1c], 8
jne 0x4146b7
cmp esi, 3
jne 0x414306
jmp 0x420055
cmp eax, 3
jne 0x414101
jmp 0x4140e5
test dword [edi + 0x1c], 0x400
jne 0x414662
mov ecx, dword [esp + 0x280]
test ecx, ecx
je 0x4146d0
call fcn.004155c5
mov esi, dword [0x4356f4]
mov ebx, eax
mov dword [esp + 0x10], ebx
xor eax, eax
mov dword [esp + 0x40], eax
cmp ebx, 0xffffffff
je 0x414322
mov ecx, ebx
mov dword [esp + 0x50], 1
call fcn.0040dcd8
test eax, eax
jne 0x420072
mov esi, dword [0x4356f4]
jmp 0x41432a
mov eax, ecx
cmp esi, 3
jne 0x414347
jmp 0x4200b8
call fcn.0040a0ab
mov eax, dword [esi + 0x1c]
or ecx, 0xffffffff
mov dword [esp + 0x10], ecx
jmp 0x41439c
xor eax, eax
cmp dword [edi + 0x20], eax
jne 0x414621
xor esi, esi
inc esi
mov dword [0x4356f4], esi
jmp 0x414621
lea ecx, [esp + 0x78]
jmp 0x414651
mov eax, dword [edi + 0x1c]
jmp 0x413e9b
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x28]
push 1
push eax
call fcn.004151ae
mov dword [esp + 0x34], eax
test eax, eax
je 0x420790
mov eax, dword [esp + 0x28]
mov dword [esp + 0x48], eax
jmp 0x41404f
cmp dword [0x4356f4], 3
jne 0x42072f
cmp dword [0x4356fc], 0
jne 0x42072f
mov esi, dword [esp + 0x14]
jmp 0x4144b2
lea edx, [esp + 0x6c0]
jmp 0x4140a9
mov ecx, dword [esp + 0x6b0]
test ecx, ecx
jne 0x41fd45
lea ecx, [esp + 0x4a8]
mov edx, dword [esi + 4]
call fcn.00429432
test eax, eax
jne 0x41448e
jmp 0x414555
cmp dword [0x4356fc], 0
je 0x414154
jmp 0x414101
lea eax, [esp + 0x78]
jmp 0x414110
mov eax, dword [esp + 0x280]
test eax, eax
jne 0x41fd84
lea eax, [esp + 0x78]
mov ecx, dword [esp + 0x6b0]
test ecx, ecx
jne 0x41fd96
lea ecx, [esp + 0x4a8]
mov edx, dword [esp + 0x6b8]
push eax
call fcn.0040f2e0
jmp 0x41413c
lea eax, [esp + 0x78]
jmp 0x41414b
mov ecx, dword [0x435798]
call fcn.00429d18
cmp dword [0x4356f4], 3
jne 0x41fdee
cmp ebx, 0xffffffff
jne 0x41fdee
mov ecx, dword [esp + 0x280]
test ecx, ecx
jne 0x41fdd9
lea ecx, [esp + 0x78]
mov edx, dword [esi + 4]
call fcn.00429432
test eax, eax
je 0x41fdee
mov ecx, dword [esp + 0x1c]
jmp 0x42075d
mov dword [esp + 0x38], 1
jmp 0x41448e
or dword [esi + 0x1c], 0x80
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x28], 0x80
test al, 1
je 0x414197
and eax, 0xfffffffe
or eax, 4
mov dword [esi + 0x1c], eax
jmp 0x414197
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x44], eax
jb 0x414188
mov ecx, eax
mov dword [esp + 0x28], eax
jmp 0x414190
cmp dword [0x4356fc], 0
je 0x4141a3
test cl, 8
jne 0x4141a3
cmp dword [0x4356f4], 3
jne 0x4141a3
and ecx, 0xfffffffe
or ecx, 2
mov dword [esi + 0x1c], ecx
jmp 0x4141a3
lea ecx, [esp + 0x290]
jmp 0x4141b2
lea ecx, [esp + 0x78]
jmp 0x4141d2
mov ecx, dword [esp + 0x20]
call fcn.0040a0ab
push 0x6e
pop ecx
call fcn.00429d18
cmp dword [0x4356f4], 3
jne 0x41fdee
mov ecx, dword [esp + 0x1c]
jmp 0x42075d
cmp dword [0x4356fc], 0
jne 0x414211
mov edi, dword [esp + 0x14]
jmp 0x41432a
lea eax, [esp + 0x78]
jmp 0x414220
lea edx, [esp + 0x290]
jmp 0x41422f
test byte [esi + 0x1c], 0x80
jne 0x414243
mov ecx, dword [esp + 0x20]
call fcn.0040a0ab
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.0042958b
cmp dword [0x4356fc], 0
je 0x41ff32
cmp dword [0x4356f4], 3
jne 0x41ff2a
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x2c]
and eax, 0xfffffffe
test ecx, ecx
jne 0x41ff25
or eax, 2
jmp 0x41ff27
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.00414bf5
mov ebx, dword [esp + 0x10]
xor eax, eax
mov dword [0x4356fc], eax
jmp 0x41448e
lea eax, [esp + 0x78]
jmp 0x41426d
lea ecx, [esp + 0x78]
jmp 0x414299
mov ecx, dword [esp + 0x20]
call fcn.0040a0ab
jmp 0x41448e
lea eax, [esp + 0x78]
jmp 0x4142ac
lea edx, [esp + 0x290]
jmp 0x4142bb
test byte [esi + 0x1c], 0x80
jne 0x4142cb
mov ecx, dword [esp + 0x20]
call fcn.0040a0ab
cmp dword [0x4356fc], 0
je 0x41ffc3
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x41ffc3
test byte [eax + 0x1c], 8
je 0x41ffc3
xor eax, eax
cmp dword [esi + 0x20], eax
jne 0x41ffc3
mov dword [0x4356f4], 1
push dword [esp + 0x1c]
lea edx, [esp + 0x14]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.0042958b
mov ebx, dword [esp + 0x10]
jmp 0x4142cb
lea eax, [esp + 0x78]
jmp 0x4142da
mov dword [esp + 0x3c], 1
jmp 0x4145de
test al, 8
je 0x4145fc
cmp esi, 3
jne 0x4145fc
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x58], esi
jne 0x4142f9
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 0x20]
test ecx, ecx
je 0x420030
test byte [ecx + 0x1c], 8
je 0x420030
or eax, 1
jmp 0x420033
or eax, 2
mov ecx, dword [esp + 0x2c]
mov dword [edi + 0x1c], eax
jmp 0x4142f9
cmp dword [esp + 0x58], 3
jne 0x4142f9
or eax, 1
mov dword [edi + 0x1c], eax
jmp 0x4142f9
test ecx, ecx
jne 0x42006a
mov eax, dword [edi + 0x1c]
and eax, 0xfffffffe
or eax, 2
mov dword [edi + 0x1c], eax
jmp 0x414306
mov dword [edi + 0x1c], ecx
jmp 0x414306
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x40], 1
jne 0x414688
mov eax, dword [edi + 0x1c]
and eax, 0xfffffffe
or eax, 2
mov dword [edi + 0x1c], eax
jmp 0x414688
cmp esi, 3
jne 0x414339
mov eax, dword [edi + 0x1c]
and eax, 0xfffffffe
test edx, edx
jne 0x4200ae
or eax, 2
jmp 0x4200b0
or eax, edx
mov dword [edi + 0x1c], eax
jmp 0x414339
mov eax, ecx
test edx, edx
jne 0x414347
and eax, 0xfffffffe
or eax, 2
mov dword [edi + 0x1c], eax
jmp 0x414347
cmp dword [esp + 0x3c], 0
mov ecx, eax
jne 0x414356
test edx, edx
jne 0x414356
and ecx, 0xfffffffe
or ecx, 2
mov dword [edi + 0x1c], ecx
jmp 0x414356
mov ecx, dword [esi + 4]
call fcn.00429e2a
test eax, eax
jne 0x42011b
mov ecx, dword [esp + 0x280]
test ecx, ecx
jne 0x42010e
lea ecx, [esp + 0x78]
call fcn.00429e2a
test eax, eax
jne 0x42011b
mov edx, eax
jmp 0x42011e
xor edx, edx
inc edx
mov ecx, dword [esp + 0x280]
test ecx, ecx
jne 0x42012d
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 0x4288e0
push ecx
push dword [esi + 4]
mov esi, dword [0x4315a8]
mov ecx, esi
call dword [0x4494c4]
call esi
jmp 0x4143e8
mov eax, dword [esp + 0x280]
test eax, eax
jne 0x420168
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 0x4143ec
lea ecx, [esp + 0x78]
jmp 0x4143c4
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [0x435798], eax
cmp eax, 1
jne 0x4201b3
test ebx, ebx
je 0x4201b3
mov eax, dword [esi + 0x18]
test dword [eax], 0x400
je 0x4201b3
mov dword [0x435798], 0x40002730
mov ecx, dword [esp + 0x20]
call fcn.0040a0ab
mov eax, dword [esp + 0x40]
mov esi, eax
mov ecx, dword [0x435798]
neg esi
mov dword [0x435790], edi
sbb esi, esi
and esi, 0x1d
test ecx, ecx
jne 0x4201e2
push 0x70
pop ecx
mov dword [0x435798], ecx
cmp dword [0x43158c], 0
je 0x4201ef
mov esi, edi
jmp 0x4201f8
test eax, eax
jne 0x4201f8
call fcn.00429d18
cmp dword [esp + 0x50], 0
jne 0x420769
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x38], 1
jmp 0x41448e
lea eax, [esp + 0x78]
jmp 0x41440a
lea ecx, [esp + 0x78]
jmp 0x414425
mov ecx, dword [esp + 0x280]
test ecx, ecx
jne 0x420239
lea ecx, [esp + 0x78]
push ecx
xor edx, edx
push ecx
inc edx
call fcn.004164cb
mov ebx, eax
mov dword [esp + 0x10], ebx
cmp ebx, 0xffffffff
je 0x4203ba
mov ecx, ebx
call fcn.0040dcd8
test eax, eax
jne 0x4203f2
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 0x420405
mov ecx, ebx
call fcn.0040a0ab
mov ecx, dword [esp + 0x280]
test ecx, ecx
jne 0x42028e
lea ecx, [esp + 0x78]
push ecx
push ecx
xor edx, edx
call fcn.004164cb
mov ebx, eax
mov dword [esp + 0x10], ebx
cmp ebx, 0xffffffff
je 0x4203ba
mov ecx, ebx
call fcn.0040dcd8
test eax, eax
jne 0x420405
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 0x42044c
mov eax, dword [esp + 0x60]
cmp eax, dword [esp + 0x64]
jne 0x42044c
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 0x4203aa
cmp dword [esp + 0x18], 0
je 0x4203aa
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 0x420431
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x68], eax
jne 0x420431
cmp edi, eax
je 0x420389
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 0x420431
test esi, esi
je 0x420323
mov ecx, ebx
call fcn.0040a0ab
or ebx, 0xffffffff
mov dword [esp + 0x10], ebx
jmp 0x420426
mov eax, dword [esp + 0x280]
test eax, eax
jne 0x4203c9
lea eax, [esp + 0x78]
push eax
push 1
push 0x4000271f
call fcn.00407834
add esp, 0xc
jmp 0x414441
lea eax, [esp + 0x78]
push eax
push 1
push 0x4000271f
call fcn.00407834
add esp, 0xc
mov ecx, ebx
call fcn.0040a0ab
or ebx, 0xffffffff
mov dword [esp + 0x10], ebx
jmp 0x414441
mov eax, dword [esp + 0x280]
test eax, eax
jne 0x4203e2
jmp 0x4203de
lea eax, [esp + 0x78]
push eax
push 1
push 0x4000271f
call fcn.00407834
add esp, 0xc
mov esi, dword [esp + 0x14]
xor edi, edi
jmp 0x414441
mov ecx, ebx
call fcn.0040a0ab
mov eax, dword [esp + 0x280]
or ebx, 0xffffffff
mov dword [esp + 0x10], ebx
test eax, eax
jne 0x420416
jmp 0x420412
mov eax, dword [esp + 0x280]
test eax, eax
jne 0x42045b
lea eax, [esp + 0x78]
push eax
push 1
push 0x4000271f
call fcn.00407834
add esp, 0xc
mov ecx, ebx
call fcn.0040a0ab
mov esi, dword [esp + 0x14]
or ebx, 0xffffffff
mov dword [esp + 0x10], ebx
jmp 0x414441
cmp ebx, 0xffffffff
je 0x4204e9
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 [0x4356fc], 0
jne 0x4204cf
cmp dword [0x4356f4], 3
jne 0x4204cf
mov eax, dword [esi + 0x1c]
mov ecx, 0x4002
and eax, ecx
cmp eax, ecx
jne 0x4204cf
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 0x420543
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x420540
or dword [eax + 0x1c], edx
jmp 0x420543
mov ecx, dword [esp + 0x280]
test ecx, ecx
jne 0x4204f8
lea ecx, [esp + 0x78]
push ecx
xor edx, edx
push ecx
inc edx
call fcn.004164cb
mov ebx, eax
mov dword [esp + 0x10], ebx
cmp ebx, 0xffffffff
jne 0x420496
mov ecx, dword [esp + 0x20]
call fcn.0040a0ab
cmp dword [0x435758], 0
jne 0x42052a
mov ecx, dword [0x435798]
call fcn.00429d18
cmp dword [0x4356f4], 3
jne 0x41fdee
mov ecx, dword [esp + 0x1c]
jmp 0x42075d
or dword [ecx + 0x1c], edx
mov eax, dword [0x435790]
test eax, eax
je 0x4205d0
cmp dword [esp + 0x18], 0
jle 0x42042a
mov eax, dword [esp + 0x280]
test eax, eax
jne 0x42056a
lea eax, [esp + 0x78]
push dword [esp + 0x20]
mov edx, edi
mov ecx, ebx
push eax
push dword [esp + 0x20]
call fcn.00429649
cmp dword [0x4356f8], 0
je 0x42042a
mov ecx, ebx
call fcn.0040dcd8
test eax, eax
jne 0x42042a
mov edx, dword [esp + 0x280]
test edx, edx
jne 0x4205a7
lea edx, [esp + 0x78]
push dword [esp + 0x34]
lea ecx, [esp + 0x14]
push edi
push dword [esp + 0x20]
call fcn.004289ac
cmp eax, 1
jne 0x4205c7
mov ecx, dword [esp + 0x1c]
jmp 0x42075d
mov ebx, dword [esp + 0x10]
jmp 0x42042a
mov ecx, dword [esp + 0x6c]
mov edi, dword [esp + 0x20]
cmp ecx, 1
jne 0x42067b
mov eax, dword [esp + 0x280]
test eax, eax
jne 0x4205f0
lea eax, [esp + 0x78]
mov edx, dword [esp + 0x24]
mov ecx, ebx
push edi
push eax
push dword [esp + 0x20]
call fcn.00429649
cmp dword [0x4356f8], 0
je 0x420646
mov ecx, ebx
call fcn.0040dcd8
test eax, eax
jne 0x420646
mov edx, dword [esp + 0x280]
test edx, edx
jne 0x420624
lea edx, [esp + 0x78]
push dword [esp + 0x34]
lea ecx, [esp + 0x14]
push dword [esp + 0x28]
push dword [esp + 0x20]
call fcn.004289ac
cmp eax, 1
je 0x420759
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x280]
test eax, eax
jne 0x420655
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.00414c20
mov ecx, eax
mov eax, dword [0x435790]
test eax, eax
je 0x4205d8
test eax, eax
je 0x42042a
cmp dword [esp + 0x18], 0
jle 0x42042a
cmp ecx, 1
jne 0x42042a
mov eax, dword [esp + 0x280]
test eax, eax
jne 0x4206a6
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.00429649
cmp dword [0x4356f8], 0
je 0x42042a
mov ecx, ebx
call fcn.0040dcd8
test eax, eax
jne 0x42042a
mov edx, dword [esp + 0x280]
test edx, edx
jne 0x4206e4
lea edx, [esp + 0x78]
push dword [esp + 0x34]
lea ecx, [esp + 0x14]
push edi
push dword [esp + 0x20]
call fcn.004289ac
cmp eax, 1
jne 0x4205c7
mov ecx, dword [esp + 0x1c]
jmp 0x42075d
mov ecx, ebx
call fcn.0040a0ab
mov eax, dword [esp + 0x280]
test eax, eax
jne 0x42071b
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 0x414488
push dword [edi]
push 0x4039c8
call fcn.00409890
push 0x401f7c
call fcn.00409890
mov ecx, dword [0x435798]
add esp, 0xc
call fcn.00429d18
mov ecx, dword [esp + 0x1c]
jmp 0x42075d
mov ecx, dword [esp + 0x1c]
call fcn.00408a9a
xor edx, edx
inc edx
xor ecx, ecx
jmp 0x42076e
xor edx, edx
mov ecx, esi
inc edx
call fcn.00428a90
xor ecx, ecx
push ecx
push eax
call fcn.0040630a
pop ecx
pop ecx
mov ecx, dword [esp + 0x20]
call fcn.0040a0ab
mov ecx, dword [esp + 0x1c]
call fcn.00408a9a
lea ecx, [esp + 0x290]
call fcn.00416164
lea ecx, [esp + 0x4a8]
call fcn.00416164
lea ecx, [esp + 0x6c0]
call fcn.00416164
lea ecx, [esp + 0x78]
call fcn.00416164
xor eax, eax
inc eax
jmp 0x414540
mov ecx, dword [esp + 0x1c]
call fcn.00408a9a
cmp ebx, 0xffffffff
je 0x420790
mov ecx, ebx
call fcn.0040a0ab
jmp 0x420790
cmp ebx, 0xffffffff
je 0x4144d2
xor eax, eax
mov edx, edi
push eax
push ebx
mov ecx, esi
call fcn.00414bc0
jmp 0x4144d2