Function at 0x41ff90
Capabilities:
Delete file
Get file attributes
Get file size
Read file on windows
Resolve function by parsing pe exports
Set file attributes
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c4157
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x4ea6c4]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ea6c4]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov eax, dword [esp + 0x288]
mov ebp, dword [esp + 0x28c]
mov esi, ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0xb0], eax
mov dword [esp + 0x8c], ebp
xor edi, edi
mov dword [esp + 0x280], edi
mov ecx, dword [ebp + 0x68]
mov edx, dword [ebp + 0x6c]
mov eax, dword [ebp + 0x80]
mov dword [esp + 0x6c], ecx
mov ecx, dword [ebp + 0x84]
mov dword [esp + 0x70], edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov byte [esp + 0x280], 1
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
xor ebx, ebx
jmp 0x420040
mov ecx, dword [esi + 0xbc]
cmp ecx, edi
je 0x4202bf
mov eax, dword [esi + 0xc0]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jae 0x4202bf
cmp ecx, edi
je 0x420074
mov eax, dword [esi + 0xc0]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x420079
call fcn.004ac22f
mov edx, dword [esi + 0xbc]
mov eax, dword [edx + ebx*4]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4200fc
lea ecx, [esp + 0x50]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4200a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4200fc
mov edx, dword [esp + 0x50]
push 1
push 0
push 0
push edx
call fcn.004b9270
mov edi, eax
xor eax, eax
add edi, esi
mov ebp, edx
lea ecx, [esp + 0xb4]
adc ebp, eax
push ecx
lea esi, [esp + 0x1c]
mov dword [esp + 0xb8], edi
mov dword [esp + 0xbc], ebp
call fcn.00422850
add dword [esp + 0x44], edi
mov esi, dword [esp + 0x38]
adc dword [esp + 0x48], ebp
mov ebp, dword [esp + 0x8c]
add ebx, 1
xor edi, edi
jmp 0x420040
xor eax, eax
push eax
mov edi, 7
push 0x4cb7f8
lea esi, [esp + 0x1a4]
mov dword [esp + 0x1bc], edi
mov dword [esp + 0x1b8], eax
mov word [esp + 0x1a8], ax
call fcn.00401700
mov ebx, dword [esp + 0x38]
mov byte [esp + 0x280], 2
mov esi, dword [ebx]
lea edx, [esp + 0x19c]
push edx
add esi, 0x30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esi]
mov ecx, ebx
call eax
mov ebp, 8
mov byte [esp + 0x280], 1
cmp dword [esp + 0x1b4], ebp
mov bl, al
jb 0x420179
mov ecx, dword [esp + 0x1a0]
push ecx
call fcn.004abbe4
add esp, 4
test bl, bl
je 0x4201ed
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42018e
push eax
call fcn.004abbe4
add esp, 4
xor eax, eax
mov dword [esp + 0x280], 0xffffffff
mov esi, dword [esp + 0x294]
cmp esi, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
je 0x42118d
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x42118d
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x42118d
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
jmp 0x42118d
xor ebx, ebx
push ebx
push 0x4cb7f8
lea esi, [esp + 0x188]
mov dword [esp + 0x1a0], edi
mov dword [esp + 0x19c], ebx
mov word [esp + 0x18c], bx
call fcn.00401700
mov edi, dword [esp + 0x38]
mov byte [esp + 0x280], 3
mov esi, dword [edi]
add esi, 0x34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
push eax
lea eax, [esp + 0x184]
push eax
push 0x10000002
mov ecx, edi
call edx
cmp dword [esp + 0x198], ebp
jb 0x42025b
mov eax, dword [esp + 0x184]
push eax
call fcn.004abbe4
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x42026c
push eax
call fcn.004abbe4
add esp, 4
mov dword [esp + 0x280], 0xffffffff
mov esi, dword [esp + 0x294]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
cmp esi, ebx
je 0x4202b8
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4202b8
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4202b8
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
xor al, al
jmp 0x42118f
mov ecx, dword [esp + 0x58]
cmp dword [esp + 0x48], ecx
ja 0x420339
jb 0x4202d5
mov edx, dword [esp + 0x54]
cmp dword [esp + 0x44], edx
jae 0x420339
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x4202e6
push eax
call fcn.004abbe4
add esp, 4
mov dword [esp + 0x280], 0xffffffff
mov esi, dword [esp + 0x294]
cmp esi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
je 0x420332
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x420332
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x420332
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor al, al
jmp 0x42118f
mov edx, dword [ebp + 0x68]
mov eax, dword [ebp + 0x78]
mov ecx, dword [ebp + 0x7c]
xor ebx, ebx
or edx, dword [ebp + 0x6c]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
je 0x4204db
mov edx, dword [esp + 0x1c]
cmp edx, edi
mov ecx, dword [esp + 0x20]
je 0x420466
mov eax, ecx
sub eax, edx
sar eax, 3
cmp eax, ebx
jbe 0x420466
cmp edx, ecx
mov esi, edx
jbe 0x420387
call fcn.004ac22f
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xc0], esi
lea esi, [esi + ebx*8]
cmp esi, dword [esp + 0x20]
lea eax, [esp + 0x18]
mov edi, eax
ja 0x4203a1
cmp esi, edx
jae 0x4203aa
call fcn.004ac22f
mov edx, dword [esp + 0x1c]
cmp esi, dword [edi + 8]
jb 0x4203b8
call fcn.004ac22f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
cmp eax, dword [esi + 4]
jb 0x4204d7
ja 0x4203d3
mov ecx, dword [esp + 0x44]
cmp ecx, dword [esi]
jb 0x4204d7
test edx, edx
je 0x420466
mov ecx, dword [esp + 0x20]
mov eax, ecx
sub eax, edx
sar eax, 3
cmp eax, ebx
jbe 0x420466
cmp edx, ecx
mov esi, edx
jbe 0x4203f9
call fcn.004ac22f
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xc0], esi
lea esi, [esi + ebx*8]
cmp esi, dword [esp + 0x20]
lea eax, [esp + 0x18]
mov edi, eax
ja 0x420413
cmp esi, edx
jae 0x42041c
call fcn.004ac22f
mov edx, dword [esp + 0x1c]
cmp esi, dword [edi + 8]
jb 0x42042a
call fcn.004ac22f
mov edx, dword [esp + 0x1c]
mov eax, dword [esi]
sub dword [esp + 0x44], eax
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x38]
sbb dword [esp + 0x48], ecx
mov ecx, dword [eax + 0xbc]
xor edi, edi
add ebx, 1
cmp ecx, edi
je 0x42046b
mov eax, dword [eax + 0xc0]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jae 0x42046b
mov eax, dword [ebp + 0x68]
or eax, dword [ebp + 0x6c]
je 0x4204d7
jmp 0x42035d
call fcn.00422990
cmp edx, edi
je 0x420478
push edx
call fcn.004abbe4
add esp, 4
mov dword [esp + 0x280], 0xffffffff
mov esi, dword [esp + 0x294]
cmp esi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
je 0x4202b8
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4202b8
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4202b8
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
xor al, al
jmp 0x42118f
mov dword [esp + 0x30], ebx
mov edi, dword [esp + 0x38]
mov ecx, dword [edi + 0xbc]
xor ebx, ebx
cmp ecx, ebx
je 0x4204fc
mov eax, dword [edi + 0xc0]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x30], eax
jb 0x420501
call fcn.004ac22f
mov ecx, dword [edi + 0xbc]
mov edx, dword [esp + 0x30]
mov eax, dword [ecx + edx*4]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
push 0x80000
mov dword [esp + 0x68], eax
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], edx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0xe8], vtable.GameMgr::GMBuffer_unsigned_char_.0
mov dword [esp + 0xf4], ebx
call fcn.004ab8e2
add esp, 4
mov dword [esp + 0x2c], eax
mov dword [esp + 0xec], eax
mov dword [esp + 0xe8], 0x80000
mov dword [esp + 0x68], ebx
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
push 1
push ebx
mov byte [esp + 0x288], 5
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0x6c]
push ebx
lea esi, [esp + 0x48]
mov byte [esp + 0x43], 0
mov byte [esp + 0x23], 0
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0xdc], ecx
call fcn.0040c7f0
test al, al
jne 0x420640
push ebx
push 0x4cb7f8
lea esi, [esp + 0x150]
mov dword [esp + 0x168], 7
mov dword [esp + 0x164], ebx
mov word [esp + 0x154], bx
call fcn.00401700
mov byte [esp + 0x280], 6
mov esi, dword [edi]
add esi, 0x34
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esi]
lea edx, [esp + 0x14c]
push edx
push 0x10000002
mov ecx, edi
call eax
mov byte [esp + 0x280], 5
cmp dword [esp + 0x160], 8
jb 0x420640
mov ecx, dword [esp + 0x14c]
push ecx
call fcn.004abbe4
add esp, 4
mov eax, dword [ebp + 0x78]
cmp dword [esp + 0x3c], eax
mov ecx, dword [ebp + 0x7c]
jne 0x420656
cmp dword [esp + 0x40], ecx
je 0x4206e6
push ebx
push ecx
push eax
mov eax, dword [edi + 0xb4]
lea esi, [esp + 0x48]
call fcn.0040c7f0
test al, al
jne 0x4206b8
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x42067d
push eax
call fcn.004ab965
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x42068e
push eax
call fcn.004abbe4
add esp, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea eax, [esp + 0x290]
mov dword [esp + 0x280], 0xffffffff
call fcn.0040f030
xor al, al
jmp 0x42118f
mov edx, dword [esp + 0x3c]
cmp edx, dword [ebp + 0x78]
jne 0x4206ca
mov eax, dword [esp + 0x40]
cmp eax, dword [ebp + 0x7c]
je 0x4206e6
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x4206db
push eax
call fcn.004ab965
add esp, 4
lea esi, [esp + 0x18]
call fcn.0044a310
jmp 0x42069a
cmp dword [esp + 0x58], ebx
ja 0x420700
cmp dword [esp + 0x54], ebx
jbe 0x421161
xor ebx, ebx
jmp 0x420700
mov ecx, dword [esp + 0x30]
add ecx, 1
mov dword [esp + 0x50], ecx
cmp dword [esp + 0x58], ebx
mov dword [esp + 0x60], ebx
jb 0x420728
ja 0x420721
cmp dword [esp + 0x54], 0x80000
jbe 0x420728
mov esi, 0x80000
jmp 0x42072c
mov esi, dword [esp + 0x54]
mov ebp, dword [esp + 0x68]
mov edx, dword [esp + 0x2c]
lea eax, [edx + ebp]
cmp eax, ebx
je 0x4211b9
mov ecx, dword [esp + 0x64]
cmp dword [ecx], 0xffffffff
je 0x4211b9
push ebx
lea edx, [esp + 0x64]
push edx
push esi
push eax
mov dword [esp + 0x70], ebx
mov eax, dword [ecx]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4211b9
mov eax, dword [esp + 0x60]
cmp eax, ebx
seta cl
test cl, cl
je 0x4211b9
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
sub ecx, eax
sbb edx, ebx
add ebp, eax
mov dword [esp + 0x54], ecx
or ecx, edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x68], ebp
je 0x420b75
cmp ebp, 0x80000
jae 0x4209cb
cmp eax, esi
jae 0x42070b
mov ecx, dword [edi + 0xbc]
cmp ecx, ebx
je 0x420b71
mov eax, dword [edi + 0xc0]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x50], eax
jae 0x420b71
mov ebp, dword [esp + 0x30]
add dword [esp + 0x50], 1
add ebp, 1
cmp ecx, ebx
mov dword [esp + 0x30], ebp
je 0x4207f6
mov eax, dword [edi + 0xc0]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x4207fb
call fcn.004ac22f
mov ecx, dword [edi + 0xbc]
mov eax, dword [ecx + ebp*4]
mov dword [esp + 0x64], eax
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x42085d
push 1
lea edx, [esp + 0xac]
push edx
push ebx
push eax
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [esp + 0xa4], eax
jne 0x42084c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42085d
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x40], eax
jmp 0x4208d2
push ebx
push 0x4cb7f8
lea esi, [esp + 0xfc]
mov dword [esp + 0x114], 7
mov dword [esp + 0x110], ebx
mov word [esp + 0x100], bx
call fcn.00401700
mov byte [esp + 0x280], 0xb
mov esi, dword [edi]
add esi, 0x34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
push eax
lea ecx, [esp + 0xf8]
push ecx
push 0x10000002
mov ecx, edi
call edx
mov byte [esp + 0x280], 5
cmp dword [esp + 0x10c], 8
jb 0x4208d2
mov eax, dword [esp + 0xf8]
push eax
call fcn.004abbe4
add esp, 4
mov ecx, dword [esp + 0x3c]
or ecx, dword [esp + 0x40]
je 0x420944
mov eax, dword [edi + 0xb4]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4213c2
push ebx
lea edx, [esp + 0xa4]
push edx
push ebx
push eax
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [esp + 0x9c], eax
jne 0x42092d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4213c2
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x3c], eax
or eax, ecx
mov dword [esp + 0x40], ecx
jne 0x4213c2
mov edx, dword [esp + 0x1c]
cmp edx, ebx
je 0x420466
mov ecx, dword [esp + 0x20]
mov eax, ecx
sub eax, edx
sar eax, 3
cmp eax, ebp
jbe 0x420466
cmp edx, ecx
mov esi, edx
jbe 0x420976
call fcn.004ac22f
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xb8], esi
lea esi, [esi + ebp*8]
cmp esi, ecx
lea eax, [esp + 0x18]
mov edi, eax
ja 0x42098e
cmp esi, edx
jae 0x420993
call fcn.004ac22f
cmp esi, dword [edi + 8]
jb 0x42099d
call fcn.004ac22f
mov ebp, dword [esp + 0x68]
xor eax, eax
mov ecx, ebp
add ecx, dword [esi]
adc eax, dword [esi + 4]
test eax, eax
ja 0x420b75
jb 0x4209c0
cmp ecx, 0x80000
ja 0x420b75
mov edi, dword [esp + 0x38]
xor ebx, ebx
jmp 0x42070b
mov eax, dword [esp + 0x64]
push 1
push ebx
push ebx
lea esi, [esp + 0x48]
call fcn.0040c7f0
test al, al
jne 0x420a55
push ebx
push 0x4cb7f8
lea esi, [esp + 0x118]
mov dword [esp + 0x130], 7
mov dword [esp + 0x12c], ebx
mov word [esp + 0x11c], bx
call fcn.00401700
mov byte [esp + 0x280], 9
mov esi, dword [edi]
add esi, 0x34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
push eax
lea eax, [esp + 0x114]
push eax
push 0x10000002
mov ecx, edi
call edx
mov byte [esp + 0x280], 5
cmp dword [esp + 0x128], 8
jb 0x420a55
mov eax, dword [esp + 0x114]
push eax
call fcn.004abbe4
add esp, 4
mov esi, dword [esp + 0x30]
push esi
lea eax, [esp + 0x1c]
call fcn.004227f0
mov ecx, dword [esp + 0x3c]
cmp ecx, dword [eax]
jne 0x420b75
mov edx, dword [esp + 0x40]
cmp edx, dword [eax + 4]
jne 0x420b75
mov ecx, dword [edi + 0xbc]
cmp ecx, ebx
jne 0x420a8a
xor eax, eax
jmp 0x420a95
mov eax, dword [edi + 0xc0]
sub eax, ecx
sar eax, 2
lea ecx, [esi + 1]
cmp ecx, eax
jae 0x420b75
mov esi, ecx
mov ecx, dword [edi + 0xbc]
cmp ecx, ebx
mov dword [esp + 0x30], esi
je 0x420abf
mov eax, dword [edi + 0xc0]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x420ac4
call fcn.004ac22f
mov eax, dword [edi + 0xbc]
mov eax, dword [eax + esi*4]
push 1
push ebx
push ebx
lea esi, [esp + 0x48]
mov dword [esp + 0x70], eax
call fcn.0040c7f0
test al, al
jne 0x420b2e
mov edx, 0x4cb7f8
lea eax, [esp + 0x1b8]
call fcn.004016b0
mov byte [esp + 0x280], 0xa
mov esi, dword [edi]
add esi, 0x34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
push eax
lea ecx, [esp + 0x1bc]
push ecx
push 0x10000002
mov ecx, edi
call edx
lea esi, [esp + 0x1b8]
mov byte [esp + 0x280], 5
call fcn.00449530
mov eax, dword [esp + 0x3c]
or eax, dword [esp + 0x40]
je 0x420b75
mov eax, dword [edi + 0xb4]
push ebx
push ebx
push ebx
lea esi, [esp + 0x48]
call fcn.0040c7f0
test al, al
je 0x420b58
mov ecx, dword [esp + 0x3c]
or ecx, dword [esp + 0x40]
je 0x420b75
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
je 0x42066c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42066c
mov ebp, dword [esp + 0x68]
mov edi, dword [esp + 0x38]
mov dl, byte [edi + 0x110]
test dl, dl
jne 0x4213e9
xor eax, eax
cmp ebp, eax
mov dword [esp + 0x60], ebp
mov dword [esp + 0x68], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x50], eax
jbe 0x421139
mov ebp, dword [esp + 0x74]
mov ebx, dword [esp + 0x60]
mov esi, dword [esp + 0x290]
mov eax, dword [edi + 0x114]
test eax, eax
je 0x420bc8
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x420bc8
push eax
call sub.KERNEL32.dll_Sleep
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
mov byte [esp + 0x8c], 0
call edx
xor ecx, ecx
cmp dword [esp + 0x70], ecx
jg 0x420bf1
jl 0x420be9
cmp dword [esp + 0x6c], eax
ja 0x420bf1
mov byte [esp + 0x8c], 1
mov ecx, dword [esp + 0x8c]
mov eax, dword [esi]
mov eax, dword [eax + 8]
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x80]
push edx
mov edx, dword [esp + 0x58]
add ecx, edx
push ebx
push ecx
mov ecx, esi
call eax
test al, al
je 0x421447
mov eax, dword [esp + 0x7c]
mov edx, dword [esi]
add dword [esp + 0x50], eax
sub ebx, eax
mov eax, dword [edx + 0x10]
mov ecx, esi
mov dword [esp + 0x60], ebx
call eax
test eax, eax
jbe 0x421131
mov dword [esp + 0x5c], 0
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x5c]
push eax
mov ecx, esi
call edx
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0xb4], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
je 0x421128
mov eax, dword [esp + 0x5c]
test eax, eax
jbe 0x421128
sub dword [esp + 0x6c], eax
sbb dword [esp + 0x70], ecx
mov esi, dword [esp + 0xb0]
mov eax, esi
call fcn.00414470
mov edi, dword [esp + 0x90]
cmp edi, eax
jae 0x421773
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x420cb0
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp edi, eax
jb 0x420cb5
call fcn.004ac22f
mov eax, esi
mov ecx, dword [eax + 4]
lea eax, [ecx + edi*8]
mov edi, dword [eax]
mov eax, dword [eax + 4]
test eax, eax
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], eax
je 0x420ce0
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
lea eax, [esp + 0x1d4]
push eax
mov byte [esp + 0x284], 0xc
call fcn.0041fe60
cmp byte [esp + 0x37], 0
mov byte [esp + 0x280], 0xd
jne 0x420f48
lea ecx, [esp + 0x200]
push ecx
call fcn.0040b850
add esp, 4
test al, al
mov edi, 8
je 0x420de5
cmp dword [esp + 0x218], edi
mov eax, dword [esp + 0x204]
jae 0x420d3c
lea eax, [esp + 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [esp + 0x204]
and eax, 0xfffffffe
cmp dword [esp + 0x218], edi
jae 0x420d5d
lea ecx, [esp + 0x204]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x218], edi
mov eax, dword [esp + 0x204]
jae 0x420d7c
lea eax, [esp + 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
je 0x420de5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x38]
mov edx, dword [ebx]
mov edx, dword [edx + 0x30]
mov esi, eax
lea eax, [esp + 0x200]
push eax
push esi
mov ecx, ebx
call edx
test al, al
je 0x420db8
mov edi, dword [esp + 0x28]
mov byte [esp + 0x17], 1
jmp 0x420e9b
mov eax, dword [ebx]
mov edx, dword [eax + 0x34]
push esi
lea ecx, [esp + 0x204]
push ecx
push 0x10000004
mov ecx, ebx
call edx
test al, al
je 0x4214ce
mov edi, dword [esp + 0x28]
mov byte [esp + 0x17], 1
jmp 0x420e9b
cmp byte [esp + 0x17], 0
jne 0x420e93
mov esi, dword [esp + 0x234]
mov eax, dword [esp + 0x28]
or esi, 0x8000000
cmp eax, 0xffffffff
je 0x420e0d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x218], edi
mov eax, dword [esp + 0x204]
jae 0x420e24
lea eax, [esp + 0x204]
push 0
push esi
push 4
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x28], edi
jne 0x420e97
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x38]
mov esi, eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x30]
lea ecx, [esp + 0x200]
push ecx
push esi
mov ecx, ebx
call edx
test al, al
je 0x420e6d
mov byte [esp + 0x17], 1
jmp 0x420e9b
mov eax, dword [ebx]
mov edx, dword [eax + 0x34]
push esi
lea ecx, [esp + 0x204]
push ecx
push 0x10000001
mov ecx, ebx
call edx
test al, al
je 0x42153a
mov byte [esp + 0x17], 1
jmp 0x420e9b
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x38]
cmp dword [esp + 0x254], 0
jne 0x420ed3
cmp dword [esp + 0x258], 0
jne 0x420ed3
mov eax, dword [esp + 0x23c]
add dword [esp + 0x84], eax
mov ecx, dword [esp + 0x240]
mov ebp, eax
adc dword [esp + 0x88], ecx
mov dword [esp + 0x78], ecx
jmp 0x420f09
mov ebp, dword [esp + 0xc4]
sub ebp, dword [esp + 0x84]
mov eax, dword [esp + 0xc8]
sbb eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
mov eax, dword [esp + 0x7c]
mov edx, dword [ebx]
mov edx, dword [edx + 0x24]
push 0
push eax
lea ecx, [esp + 0x1dc]
push ecx
mov ecx, ebx
mov dword [esp + 0x80], ebp
mov byte [esp + 0x43], 1
call edx
mov ecx, dword [ebx + 0x114]
test ecx, ecx
je 0x420f50
mov eax, dword [ecx]
mov eax, dword [eax + 8]
lea edx, [esp + 0x1d4]
push edx
call eax
jmp 0x420f50
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x28]
xor ecx, ecx
cmp byte [esp + 0x17], cl
mov dword [esp + 0x80], ecx
jne 0x420fb5
mov esi, dword [esp + 0x5c]
cmp ebp, esi
jae 0x420f69
mov esi, ebp
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0xb4]
add eax, edx
cmp eax, ecx
je 0x42159e
cmp edi, 0xffffffff
je 0x42159e
push 0
lea ecx, [esp + 0x84]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42159e
mov eax, dword [esp + 0x80]
cmp esi, eax
jne 0x42159e
xor ecx, ecx
jmp 0x420fc6
mov eax, dword [esp + 0x5c]
cmp ebp, eax
jae 0x420fbf
mov eax, ebp
mov dword [esp + 0x80], eax
cmp ebp, eax
jne 0x421094
cmp dword [esp + 0x78], ecx
jne 0x421094
sub dword [esp + 0x5c], eax
add dword [esp + 0x90], 1
add dword [esp + 0x44], eax
mov edx, dword [esp + 0x22c]
mov eax, dword [esp + 0x230]
adc dword [esp + 0x48], ecx
cmp edi, 0xffffffff
mov ecx, dword [esp + 0x224]
mov dword [esp + 0xdc], edx
mov edx, dword [esp + 0x228]
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0x21c]
mov dword [esp + 0xd4], ecx
mov ecx, dword [esp + 0x220]
mov dword [esp + 0xd8], edx
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ecx
je 0x421077
lea edx, [esp + 0xdc]
push edx
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0xc4]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x421077
mov dword [esp + 0x28], 0xffffffff
mov edx, dword [ebx]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x1d4]
push eax
mov ecx, ebx
mov byte [esp + 0x3b], 0
mov byte [esp + 0x1b], 0
call edx
jmp 0x4210aa
sub ebp, eax
sbb dword [esp + 0x78], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x74], ebp
lea esi, [esp + 0x1d4]
mov byte [esp + 0x280], 0xc
call fcn.0041d480
mov byte [esp + 0x280], 5
mov esi, dword [esp + 0x98]
test esi, esi
je 0x4210fb
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4210fb
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4210fb
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
cmp dword [esp + 0x5c], 0
ja 0x420c80
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x7c]
add dword [eax + 0x120], ecx
mov ebx, dword [esp + 0x60]
mov esi, dword [esp + 0x290]
adc dword [eax + 0x124], 0
mov edi, eax
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
test ebx, ebx
ja 0x420bb0
cmp dword [esp + 0x58], 0
ja 0x4206f6
cmp dword [esp + 0x54], 0
ja 0x4206f6
cmp dword [esp + 0x28], 0xffffffff
je 0x421161
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xe4]
call fcn.00401bb0
lea esi, [esp + 0x18]
call fcn.0044a310
lea eax, [esp + 0x290]
mov dword [esp + 0x280], 0xffffffff
call fcn.0040f030
mov al, 1
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.004abc64
add esp, 0x270
ret 0x10
xor ebp, ebp
push ebp
push 0x4cb7f8
lea esi, [esp + 0x134]
mov dword [esp + 0x14c], 7
mov dword [esp + 0x148], ebp
mov word [esp + 0x138], bp
call fcn.00401700
mov byte [esp + 0x280], 7
mov esi, dword [edi]
lea ecx, [esp + 0x12c]
push ecx
add esi, 0x30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
push eax
mov ecx, edi
call edx
mov byte [esp + 0x280], 5
cmp dword [esp + 0x144], 8
mov bl, al
jb 0x42122d
mov eax, dword [esp + 0x130]
push eax
call fcn.004abbe4
add esp, 4
test bl, bl
je 0x4212c4
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
je 0x421245
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x2c]
cmp eax, ebp
je 0x421256
push eax
call fcn.004ab965
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x421267
push eax
call fcn.004abbe4
add esp, 4
mov dword [esp + 0x280], 0xffffffff
mov esi, dword [esp + 0x294]
cmp esi, ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
je 0x42118d
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x42118d
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x42118d
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
jmp 0x42118d
push ebp
push 0x4cb7f8
lea esi, [esp + 0x16c]
mov dword [esp + 0x184], 7
mov dword [esp + 0x180], ebp
mov word [esp + 0x170], bp
call fcn.00401700
mov byte [esp + 0x280], 8
mov esi, dword [edi]
add esi, 0x34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
push eax
lea ecx, [esp + 0x168]
push ecx
push 0x10000002
mov ecx, edi
call edx
cmp dword [esp + 0x17c], 8
jb 0x421331
mov eax, dword [esp + 0x168]
push eax
call fcn.004abbe4
add esp, 4
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
je 0x421341
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x2c]
cmp eax, ebp
je 0x421352
push eax
call fcn.004ab965
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x421363
push eax
call fcn.004abbe4
add esp, 4
mov dword [esp + 0x280], 0xffffffff
mov esi, dword [esp + 0x294]
cmp esi, ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
je 0x4202b8
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4202b8
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4202b8
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
xor al, al
jmp 0x42118f
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
je 0x4213d2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x42025b
push eax
call fcn.004ab965
jmp 0x420258
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
je 0x4213f9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x2c]
xor esi, esi
cmp eax, esi
je 0x42140c
push eax
call fcn.004ab965
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x42141d
push eax
call fcn.004abbe4
add esp, 4
lea eax, [esp + 0x290]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x280], 0xffffffff
call fcn.0040f030
xor al, al
jmp 0x42118f
mov eax, dword [esp + 0xcc]
sub eax, dword [esp + 0x54]
mov ecx, dword [esp + 0xd0]
sbb ecx, dword [esp + 0x58]
add eax, dword [esp + 0x3c]
mov edx, dword [edi]
adc ecx, dword [esp + 0x40]
push ecx
push eax
mov eax, dword [edx + 0x38]
push 0x30000003
mov ecx, edi
call eax
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
je 0x421485
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x421498
push eax
call fcn.004ab965
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x4214a9
push eax
call fcn.004abbe4
add esp, 4
mov dword [esp + 0x280], 0xffffffff
mov esi, dword [esp + 0x294]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
cmp esi, edi
jmp 0x42028c
lea esi, [esp + 0x1d4]
mov byte [esp + 0x280], 0xc
call fcn.0041d480
mov byte [esp + 0x280], 5
mov esi, dword [esp + 0x98]
xor edi, edi
cmp esi, edi
je 0x421521
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x421521
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x421521
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
je 0x421487
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x421487
lea esi, [esp + 0x1d4]
mov byte [esp + 0x280], 0xc
call fcn.0041d480
mov byte [esp + 0x280], 5
mov esi, dword [esp + 0x98]
xor edi, edi
cmp esi, edi
je 0x421487
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x421487
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x421487
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
jmp 0x421487
mov esi, dword [ebx]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x200]
push ecx
add esi, 0x30
call ebp
mov edx, dword [esi]
push eax
mov ecx, ebx
call edx
test al, al
je 0x421678
lea esi, [esp + 0x1d4]
mov byte [esp + 0x280], 0xc
call fcn.0041d480
mov byte [esp + 0x280], 5
mov esi, dword [esp + 0x98]
xor ebx, ebx
cmp esi, ebx
je 0x421615
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x421615
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x421615
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
cmp edi, 0xffffffff
je 0x421621
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x421632
push eax
call fcn.004ab965
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x421643
push eax
call fcn.004abbe4
add esp, 4
mov dword [esp + 0x280], 0xffffffff
mov esi, dword [esp + 0x294]
cmp esi, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
je 0x42118d
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jmp 0x4201c0
mov esi, dword [ebx]
add esi, 0x34
call ebp
mov edx, dword [esi]
push eax
lea eax, [esp + 0x204]
push eax
push 0x10000003
mov ecx, ebx
call edx
lea esi, [esp + 0x1d4]
mov byte [esp + 0x280], 0xc
call fcn.0041d480
mov byte [esp + 0x280], 5
mov esi, dword [esp + 0x98]
xor ebx, ebx
cmp esi, ebx
je 0x4216e6
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4216e6
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4216e6
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
cmp edi, 0xffffffff
je 0x4216f2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x421703
push eax
call fcn.004ab965
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x421714
push eax
call fcn.004abbe4
add esp, 4
mov dword [esp + 0x280], 0xffffffff
mov esi, dword [esp + 0x294]
cmp esi, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
je 0x4202b8
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4202b8
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4202b8
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor al, al
jmp 0x42118f
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
je 0x421783
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x2c]
xor edi, edi
cmp eax, edi
je 0x421796
push eax
call fcn.004ab965
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x4217a7
push eax
call fcn.004abbe4
add esp, 4
mov dword [esp + 0x280], 0xffffffff
mov esi, dword [esp + 0x294]
cmp esi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
je 0x4202b8
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4202b8
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4202b8
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor al, al
jmp 0x42118f