Function at 0x4101e0
Capabilities:
Check if file exists
Create directory
Create process on windows
Delete file
Encode data using xor
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f7036
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x6817dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1bc], ebx
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebx + 0x94], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push 0xc8
lea eax, [ebp - 0x19c]
push 0
push eax
call fcn.005c9930
add esp, 0xc
mov dword [ebp - 0x19c], 0
lea ecx, [ebp - 0x19c]
mov dword [ebp - 0x198], 0
call fcn.004100a0
lea edi, [ebx + 4]
mov byte [ebp - 4], 2
cmp dword [edi + 0x14], 0x10
jb 0x410299
mov edi, dword [edi]
mov esi, edi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x4102a0
sub esi, ecx
lea ecx, [ebp - 0x19c]
call fcn.00410130
lea ecx, [ebp - 0x19c]
call fcn.004100a0
mov edx, dword [ebp - 0x19c]
lea eax, [ebp - 0x198]
push eax
sub esp, 0x10
lea ecx, [ebp - 0x1a8]
push esi
push edi
push edx
call fcn.0040fe70
add esp, 0x20
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1ac], 0x1315003a
xor ecx, ecx
mov dword [ebp - 0x1a8], 0x1f331107
mov dword [ebp - 0x1a4], 0xa1d1b
mov byte [ebp - 0x1a0], 1
nop
lea eax, [ecx + 0x6f]
xor byte [ebp + ecx - 0x1ac], al
inc ecx
cmp ecx, 0xb
jb 0x410310
lea eax, [ebp - 0x1ac]
mov byte [ebp - 0x1a0], 0
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x19c]
call fcn.00410020
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x410349
mov esi, dword [eax + 0x10]
jmp 0x41034b
xor esi, esi
or edi, 0xffffffff
mov dword [ebp - 0x18], esi
test esi, esi
je 0x411520
nop dword [eax]
push str.Name
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x18]
call fcn.00410020
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x41038d
mov edx, dword [eax + 0x10]
test edx, edx
je 0x41038d
mov edx, dword [edx + 8]
test edx, edx
jne 0x410392
mov edx, 0x664884
mov ecx, edx
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4103b0
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x74]
call fcn.004042b0
push 0x6650b0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 0
call fcn.00410020
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4103f4
mov edx, dword [eax + 0x10]
test edx, edx
je 0x4103f4
mov edx, dword [edx + 8]
test edx, edx
jne 0x4103f9
mov edx, 0x664884
mov ecx, edx
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0xf
mov byte [ebp - 0xd4], 0
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410420
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0xd4]
call fcn.004042b0
push 0x6650b4
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 0
call fcn.00410020
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x410467
mov edx, dword [eax + 0x10]
test edx, edx
je 0x410467
mov edx, dword [edx + 8]
test edx, edx
jne 0x41046c
mov edx, 0x664884
mov ecx, edx
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0xf
mov byte [ebp - 0xbc], 0
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410490
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0xbc]
call fcn.004042b0
push 0x6650b8
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 0
call fcn.00410020
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4104d7
mov edx, dword [eax + 0x10]
test edx, edx
je 0x4104d7
mov edx, dword [edx + 8]
test edx, edx
jne 0x4104dc
mov edx, 0x664884
mov ecx, edx
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4104f6
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x8c]
call fcn.004042b0
push str.Length
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 0
call fcn.00410020
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x41053d
mov edx, dword [eax + 0x10]
test edx, edx
je 0x41053d
mov edx, dword [edx + 8]
test edx, edx
jne 0x410542
mov edx, 0x664884
mov ecx, edx
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0xf
mov byte [ebp - 0xa4], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410562
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0xa4]
call fcn.004042b0
mov byte [ebp - 4], 7
lea edx, [ebp - 0xbc]
cmp dword [ebp - 0xa8], 0x10
mov dword [ebp - 0x20], 0
cmovae edx, dword [ebp - 0xbc]
mov ecx, edx
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0xf
mov byte [ebp - 0x25c], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4105b7
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x25c]
call fcn.004042b0
lea edx, [ebp - 0x25c]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x274]
call fcn.004061e0
mov edi, eax
push 0x664eb4
lea edx, [ebp + 8]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x200]
call fcn.00412c50
add esp, 4
mov byte [ebp - 4], 0xa
cmp dword [edi + 0x14], 8
jb 0x41060a
mov edi, dword [edi]
push edi
mov edx, eax
lea ecx, [ebp - 0x20]
call fcn.00412c50
add esp, 4
mov byte [ebp - 4], 0xc
or eax, 0xffffffff
mov edx, dword [ebp - 0x200]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41063a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x260]
cmp edx, 8
jb 0x41067e
mov ecx, dword [ebp - 0x274]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410674
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ce0
push edx
push ecx
call fcn.0055e71a
add esp, 8
xor eax, eax
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], 7
mov word [ebp - 0x274], ax
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x248]
cmp edx, 0x10
jb 0x4106d9
mov ecx, dword [ebp - 0x25c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4106cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ce0
push edx
push ecx
call fcn.0055e71a
add esp, 8
cmp dword [ebp - 0x60], 0x10
lea edx, [ebp - 0x74]
mov dword [ebp - 0x24c], 0
cmovae edx, dword [ebp - 0x74]
mov ecx, edx
mov dword [ebp - 0x248], 0xf
mov byte [ebp - 0x25c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
lea edi, [ecx + 1]
mov byte [ebp - 0x44], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410720
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.004042b0
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x234]
call fcn.004061e0
mov byte [ebp - 4], 0x10
cmp dword [eax + 0x14], 8
jb 0x410751
mov eax, dword [eax]
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x1c]
call fcn.00412c50
add esp, 4
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x4107a4
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41079a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ce0
push edx
push ecx
call fcn.0055e71a
add esp, 8
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov byte [ebp - 4], 0x13
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x4107f9
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4107ef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ce0
push edx
push ecx
call fcn.0055e71a
add esp, 8
cmp dword [ebp - 0x90], 0x10
lea edx, [ebp - 0xa4]
mov dword [ebp - 0x34], 0
cmovae edx, dword [ebp - 0xa4]
mov ecx, edx
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x1a0], 0xf
mov byte [ebp - 0x1b4], 0
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410840
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x1b4]
call fcn.004042b0
push 0
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x1b4]
cmp dword [ebp - 0x1a0], 0x10
push 0
cmovae eax, dword [ebp - 0x1b4]
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
xor ecx, ecx
mov edx, 2
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0055e74b
lea ecx, [ebx*2 + 2]
mov edi, eax
push ecx
push 0
push edi
mov dword [ebp - 0x1b8], edi
call fcn.005c9930
add esp, 0x10
lea ecx, [ebp - 0x1b4]
cmp dword [ebp - 0x1a0], 0x10
cmovae ecx, dword [ebp - 0x1b4]
push ebx
push edi
push dword [ebp - 0x1a4]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
lea edi, [ebx + 1]
push edi
call fcn.0055e74b
push edi
mov edi, eax
mov dword [ebp - 0x14], eax
push 0
push edi
call fcn.005c9930
add esp, 0x10
push 0
push 0
push ebx
mov ebx, dword [ebp - 0x1b8]
push edi
push dword [ebp - 0x18]
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, edi
mov dword [ebp - 0x208], 0
mov dword [ebp - 0x204], 0xf
mov byte [ebp - 0x218], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410950
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x218]
call fcn.004042b0
or dword [ebp - 0x1c4], 1
push edi
call fcn.0055e6e5
push ebx
call fcn.0055e6e5
cmp dword [ebp - 0x204], 0x10
lea eax, [ebp - 0x218]
cmovae eax, dword [ebp - 0x218]
push eax
call fcn.005d7f35
mov edx, dword [ebp - 0x204]
add esp, 0xc
mov ebx, eax
mov dword [ebp - 0x18], ebx
cmp edx, 0x10
jb 0x4109d5
mov ecx, dword [ebp - 0x218]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4109cb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ce0
push edx
push ecx
call fcn.0055e71a
add esp, 8
mov byte [ebp - 4], 0x13
mov edx, dword [ebp - 0x1a0]
mov dword [ebp - 0x208], 0
mov dword [ebp - 0x204], 0xf
mov byte [ebp - 0x218], 0
cmp edx, 0x10
jb 0x410a2e
mov ecx, dword [ebp - 0x1b4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410a24
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ce0
push edx
push ecx
call fcn.0055e71a
add esp, 8
lea eax, [ebp - 0x74]
push eax
lea edx, [ebp - 0xd4]
lea ecx, [ebp - 0x5c]
call fcn.00413190
add esp, 4
mov byte [ebp - 4], 0x15
mov ecx, 1
mov eax, dword [ebp - 0x1c]
sub ecx, dword [eax - 4]
or ecx, dword [eax - 8]
jge 0x410a64
push 0
lea ecx, [ebp - 0x1c]
call fcn.0040d3b0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [ebp - 0x8c]
mov dword [ebp - 0x1b8], edi
test eax, eax
jne 0x410e2c
lea ecx, [ebp - 0x1b0]
call fcn.00411cf0
mov byte [ebp - 4], 0x16
lea edx, [ebp - 0x74]
cmp dword [ebp - 0x60], 0x10
mov dword [ebp - 0x1ac], ebx
cmovae edx, dword [ebp - 0x74]
mov ecx, edx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410ab6
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.004042b0
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x234]
call fcn.004061e0
mov edx, eax
mov byte [ebp - 4], 0x18
cmp dword [edx + 0x14], 8
jb 0x410ae9
mov edx, dword [edx]
test edx, edx
jne 0x410af1
xor ecx, ecx
jmp 0x410b05
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410af6
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1a4]
call fcn.0040d230
mov byte [ebp - 4], 0x17
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x410b56
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410b4c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ce0
push edx
push ecx
call fcn.0055e71a
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0x16
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
cmp edx, 0x10
jb 0x410bab
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410ba1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ce0
push edx
push ecx
call fcn.0055e71a
add esp, 8
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x1a8]
add edi, 0xfffffff0
lea ebx, [eax - 0x10]
cmp ebx, edi
je 0x410c04
cmp dword [edi + 0xc], 0
jl 0x410bf5
mov edx, dword [ebx]
cmp edx, dword [edi]
jne 0x410bf5
mov ecx, ebx
call fcn.00412ea0
mov ebx, eax
lea edx, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410bea
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea eax, [ebx + 0x10]
mov dword [ebp - 0x1a8], eax
jmp 0x410c04
push dword [eax - 0xc]
lea ecx, [ebp - 0x1a8]
push eax
call fcn.0040d230
cmp dword [ebp - 0x48], 0x10
lea edx, [ebp - 0x5c]
mov dword [ebp - 0x34], 0
cmovae edx, dword [ebp - 0x5c]
mov ecx, edx
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410c26
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.004042b0
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x234]
call fcn.004061e0
mov edx, eax
mov byte [ebp - 4], 0x1a
cmp dword [edx + 0x14], 8
jb 0x410c59
mov edx, dword [edx]
test edx, edx
jne 0x410c61
xor ecx, ecx
jmp 0x410c75
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410c66
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1b0]
call fcn.0040d230
mov byte [ebp - 4], 0x19
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x410cc6
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410cbc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ce0
push edx
push ecx
call fcn.0055e71a
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0x16
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
cmp edx, 0x10
jb 0x410d1b
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410d11
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ce0
push edx
push ecx
call fcn.0055e71a
add esp, 8
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1a0]
add edi, 0xfffffff0
lea ebx, [eax - 0x10]
cmp ebx, edi
je 0x410d74
cmp dword [edi + 0xc], 0
jl 0x410d65
mov edx, dword [ebx]
cmp edx, dword [edi]
jne 0x410d65
mov ecx, ebx
call fcn.00412ea0
mov ebx, eax
lea edx, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410d5a
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea eax, [ebx + 0x10]
mov dword [ebp - 0x1a0], eax
jmp 0x410d74
push dword [eax - 0xc]
lea ecx, [ebp - 0x1a0]
push eax
call fcn.0040d230
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x1b0]
push ecx
cmp dword [ebp - 0x24], eax
je 0x410d90
mov ecx, eax
call fcn.004137c0
add dword [ebp - 0x28], 0x14
jmp 0x410d99
push eax
lea ecx, [ebp - 0x2c]
call fcn.004132d0
mov ebx, dword [ebp - 0x1bc]
or edi, 0xffffffff
mov eax, dword [ebp - 0x18]
add dword [ebx + 0x94], eax
mov eax, edi
mov byte [ebp - 4], 0x15
mov edx, dword [ebp - 0x1a0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410dcc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1a4]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410de9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1a8]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410e06
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1b0]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x411355
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x411355
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x234]
call fcn.004063f0
mov edx, eax
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x44]
call fcn.00402a80
mov byte [ebp - 4], 0x1d
mov edx, dword [ebp - 0x220]
cmp edx, 0x10
jb 0x410e86
mov ecx, dword [ebp - 0x234]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410e7c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ce0
push edx
push ecx
call fcn.0055e71a
add esp, 8
cmp dword [ebp - 0x78], 0x10
lea ecx, [ebp - 0x8c]
mov ebx, dword [ebp - 0x44]
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x34]
cmovae ecx, edi
cmp dword [ebp - 0x30], 0x10
mov edi, eax
mov dword [ebp - 0x224], 0
cmovae edx, ebx
mov dword [ebp - 0x220], 0xf
cmp dword [ebp - 0x7c], eax
mov byte [ebp - 0x234], 0
cmovb edi, dword [ebp - 0x7c]
sub edi, 4
jb 0x410ee1
nop dword [eax]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x410ee6
add edx, 4
add ecx, 4
sub edi, 4
jae 0x410ed0
cmp edi, 0xfffffffc
je 0x410f1a
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x410f13
cmp edi, 0xfffffffd
je 0x410f1a
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x410f13
cmp edi, 0xfffffffe
je 0x410f1a
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x410f13
cmp edi, 0xffffffff
je 0x410f1a
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x410f1a
sbb eax, eax
or eax, 1
jmp 0x410f1c
xor eax, eax
test eax, eax
jne 0x410f3b
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x7c]
cmp ecx, eax
jbe 0x410f2f
or eax, 0xffffffff
jmp 0x410f33
sbb eax, eax
neg eax
test eax, eax
je 0x411315
lea ecx, [ebp - 0x1b0]
call fcn.00411cf0
mov byte [ebp - 4], 0x1e
lea edx, [ebp - 0x74]
cmp dword [ebp - 0x60], 0x10
mov eax, dword [ebp - 0x18]
cmovae edx, dword [ebp - 0x74]
mov ecx, edx
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0x208], 0
mov dword [ebp - 0x204], 0xf
mov byte [ebp - 0x218], 0
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410f80
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x218]
call fcn.004042b0
lea edx, [ebp - 0x218]
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x1e0]
call fcn.004061e0
mov edx, eax
mov byte [ebp - 4], 0x20
cmp dword [edx + 0x14], 8
jb 0x410fb9
mov edx, dword [edx]
test edx, edx
jne 0x410fc1
xor ecx, ecx
jmp 0x410fd5
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410fc6
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1a4]
call fcn.0040d230
mov byte [ebp - 4], 0x1f
mov edx, dword [ebp - 0x1cc]
cmp edx, 8
jb 0x411026
mov ecx, dword [ebp - 0x1e0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41101c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ce0
push edx
push ecx
call fcn.0055e71a
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0x1e
mov edx, dword [ebp - 0x204]
mov dword [ebp - 0x1d0], 0
mov dword [ebp - 0x1cc], 7
mov word [ebp - 0x1e0], ax
cmp edx, 0x10
jb 0x411081
mov ecx, dword [ebp - 0x218]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x411077
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ce0
push edx
push ecx
call fcn.0055e71a
add esp, 8
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x1a8]
add edi, 0xfffffff0
lea ebx, [eax - 0x10]
cmp ebx, edi
je 0x4110da
cmp dword [edi + 0xc], 0
jl 0x4110cb
mov edx, dword [ebx]
cmp edx, dword [edi]
jne 0x4110cb
mov ecx, ebx
call fcn.00412ea0
mov ebx, eax
lea edx, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4110c0
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea eax, [ebx + 0x10]
mov dword [ebp - 0x1a8], eax
jmp 0x4110da
push dword [eax - 0xc]
lea ecx, [ebp - 0x1a8]
push eax
call fcn.0040d230
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1a0]
add edi, 0xfffffff0
lea ebx, [eax - 0x10]
cmp ebx, edi
je 0x411133
cmp dword [edi + 0xc], 0
jl 0x411124
mov edx, dword [ebx]
cmp edx, dword [edi]
jne 0x411124
mov ecx, ebx
call fcn.00412ea0
mov ebx, eax
lea edx, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411119
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea eax, [ebx + 0x10]
mov dword [ebp - 0x1a0], eax
jmp 0x411133
push dword [eax - 0xc]
lea ecx, [ebp - 0x1a0]
push eax
call fcn.0040d230
cmp dword [ebp - 0x48], 0x10
lea edx, [ebp - 0x5c]
mov dword [ebp - 0x208], 0
cmovae edx, dword [ebp - 0x5c]
mov ecx, edx
mov dword [ebp - 0x204], 0xf
mov byte [ebp - 0x218], 0
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411160
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x218]
call fcn.004042b0
lea edx, [ebp - 0x218]
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x1e0]
call fcn.004061e0
mov edx, eax
mov byte [ebp - 4], 0x22
cmp dword [edx + 0x14], 8
jb 0x411199
mov edx, dword [edx]
test edx, edx
jne 0x4111a1
xor ecx, ecx
jmp 0x4111b5
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4111a6
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1b0]
call fcn.0040d230
mov byte [ebp - 4], 0x21
mov edx, dword [ebp - 0x1cc]
cmp edx, 8
jb 0x411206
mov ecx, dword [ebp - 0x1e0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4111fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ce0
push edx
push ecx
call fcn.0055e71a
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0x1e
mov edx, dword [ebp - 0x204]
mov dword [ebp - 0x1d0], 0
mov dword [ebp - 0x1cc], 7
mov word [ebp - 0x1e0], ax
cmp edx, 0x10
jb 0x411261
mov ecx, dword [ebp - 0x218]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x411257
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ce0
push edx
push ecx
call fcn.0055e71a
add esp, 8
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x1b0]
push ecx
cmp dword [ebp - 0x24], eax
je 0x41127d
mov ecx, eax
call fcn.004137c0
add dword [ebp - 0x28], 0x14
jmp 0x411286
push eax
lea ecx, [ebp - 0x2c]
call fcn.004132d0
mov ecx, dword [ebp - 0x1bc]
or edi, 0xffffffff
mov eax, dword [ebp - 0x18]
add dword [ecx + 0x94], eax
mov eax, edi
mov byte [ebp - 4], 0x1d
mov edx, dword [ebp - 0x1a0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4112b9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1a4]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4112d6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1a8]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4112f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1b0]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x411310
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x44]
jmp 0x411318
or edi, 0xffffffff
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x41134f
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x411345
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ce0
push ecx
push ebx
call fcn.0055e71a
add esp, 8
mov ebx, dword [ebp - 0x1bc]
mov byte [ebp - 4], 0x13
mov edx, dword [ebp - 0x48]
cmp edx, 0x10
jb 0x41138d
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x411383
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ce0
push edx
push ecx
call fcn.0055e71a
add esp, 8
mov byte [ebp - 4], 0xe
mov eax, edi
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], 0
add edx, 0xfffffff0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4113bd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, edi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4113db
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x90]
cmp edx, 0x10
jb 0x411419
mov ecx, dword [ebp - 0xa4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41140f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ce0
push edx
push ecx
call fcn.0055e71a
add esp, 8
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x78]
cmp eax, 0x10
jb 0x411456
mov edx, dword [ebp - 0x1b8]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x41144c
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ce0
push ecx
push edx
call fcn.0055e71a
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0xa8]
cmp edx, 0x10
jb 0x411494
mov ecx, dword [ebp - 0xbc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41148a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ce0
push edx
push ecx
call fcn.0055e71a
add esp, 8
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xc0]
cmp edx, 0x10
jb 0x4114d2
mov ecx, dword [ebp - 0xd4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4114c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ce0
push edx
push ecx
call fcn.0055e71a
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x60]
cmp edx, 0x10
jb 0x41150a
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x411500
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ce0
push edx
push ecx
call fcn.0055e71a
add esp, 8
test esi, esi
je 0x411513
mov esi, dword [esi + 0x18]
jmp 0x411515
xor esi, esi
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x410360
push 0
mov dword [ebx + 0x70], 0
call fcn.005d3b64
mov ecx, dword [ebp - 0x28]
add esp, 4
mov esi, dword [ebp - 0x2c]
sub ecx, esi
mov dword [ebx + 0x98], eax
mov eax, 0x66666667
imul ecx
mov dword [ebp - 0x200], 0
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4119d3
xor ebx, ebx
push dword [ebx + esi + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x411677
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebx + eax + 0x10]
mov ecx, edx
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411594
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.00405d50
mov byte [ebp - 4], 0x23
lea edx, [ebp - 0x5c]
cmp dword [ebp - 0x48], 8
lea ecx, [ebp - 0x1e0]
cmovae edx, dword [ebp - 0x5c]
call fcn.004063f0
cmp dword [eax + 0x14], 0x10
jb 0x4115cf
mov eax, dword [eax]
push eax
call dword [sym.imp.imagehlp.dll_MakeSureDirectoryPathExists]
mov edx, dword [ebp - 0x1cc]
test eax, eax
sete al
mov byte [ebp - 0x1bd], al
cmp edx, 0x10
jb 0x411621
mov ecx, dword [ebp - 0x1e0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x411611
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ce0
push edx
push ecx
call fcn.0055e71a
mov al, byte [ebp - 0x1bd]
add esp, 8
test al, al
je 0x411639
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
push 0
cmovae eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x411677
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41166d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ce0
push edx
push ecx
call fcn.0055e71a
add esp, 8
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x1c]
add edx, 0x10
mov dword [ebp - 0x1c], 0
push str.temp.pak
add edx, ebx
call fcn.00412c50
mov byte [ebp - 4], 0x24
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x21c], esp
mov dword [ebp - 0x240], esp
mov eax, dword [ebx + eax + 0xc]
mov ecx, dword [eax - 0x10]
lea esi, [eax - 0x10]
mov dword [ebp - 0x1b8], eax
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x4116cf
cmp ecx, dword [esi]
jne 0x4116cf
lock inc dword [eax]
jmp 0x4116fe
mov eax, dword [ecx]
lea edi, [esi + 4]
push 2
push dword [edi]
call dword [eax]
mov esi, eax
test esi, esi
je 0x411cdb
mov ecx, dword [edi]
mov dword [esi + 4], ecx
lea ecx, [esi + 0x10]
mov edx, dword [edi]
inc edx
push edx
push dword [ebp - 0x1b8]
call fcn.0040d0c0
add esp, 8
mov ecx, dword [ebp - 0x240]
lea eax, [esi + 0x10]
mov dword [ecx], eax
mov byte [ebp - 4], 0x25
mov esi, dword [ebp - 0x1c]
push ecx
mov dword [ebp - 0x23c], esp
mov dword [ebp - 0x244], esp
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
mov ecx, eax
lea eax, [esi - 4]
jl 0x41173d
cmp ecx, dword [esi - 0x10]
jne 0x41173d
lea edi, [esi - 0x10]
lock inc dword [eax]
jmp 0x411767
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x411cdb
mov ecx, dword [esi - 0xc]
mov dword [edi + 4], ecx
lea ecx, [edi + 0x10]
mov edx, dword [esi - 0xc]
inc edx
push edx
push esi
call fcn.0040d0c0
add esp, 8
mov ecx, dword [ebp - 0x244]
lea eax, [edi + 0x10]
mov dword [ecx], eax
mov byte [ebp - 4], 0x26
mov eax, dword [ebp - 0x2c]
push ecx
mov dword [ebp - 0x238], esp
mov eax, dword [ebx + eax]
mov ecx, dword [eax - 0x10]
lea esi, [eax - 0x10]
mov dword [ebp - 0x1b8], eax
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x4117a8
cmp ecx, dword [esi]
jne 0x4117a8
lock inc dword [eax]
jmp 0x4117d7
mov eax, dword [ecx]
lea edi, [esi + 4]
push 2
push dword [edi]
call dword [eax]
mov esi, eax
test esi, esi
je 0x411cdb
mov ecx, dword [edi]
mov dword [esi + 4], ecx
lea ecx, [esi + 0x10]
mov edx, dword [edi]
inc edx
push edx
push dword [ebp - 0x1b8]
call fcn.0040d0c0
add esp, 8
mov ecx, dword [ebp - 0x238]
lea eax, [esi + 0x10]
push ecx
mov dword [ecx], eax
mov ecx, dword [ebp - 0x1bc]
mov byte [ebp - 4], 0x24
call fcn.00412210
test eax, eax
jg 0x4119e3
push dword [ebp - 0x1c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411832
mov eax, dword [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebx + eax + 8]
call esi
mov eax, dword [ebp - 0x2c]
push fcn.00403c50
push dword [ebx + eax + 0x10]
push dword [ebp - 0x1c]
call fcn.0056081c
add esp, 0xc
push dword [ebp - 0x1c]
call esi
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 0x27
mov eax, dword [edi + ebx + 0x10]
mov dword [ebp - 0x20], 0
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x41185b
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x41186f
call fcn.00406a40
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
test eax, eax
je 0x411cd1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
or dword [ebp - 0x1c4], 4
mov ecx, dword [edi + ebx + 0x10]
mov dword [ebp - 0x1b8], ecx
lea esi, [eax + 0x10]
mov eax, dword [edi + ebx + 0xc]
mov dword [ebp - 0x21c], eax
mov edx, dword [ecx - 0xc]
mov dword [ebp - 0x20], esi
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x14], edx
lea edi, [edx + eax]
test edi, edi
js 0x411cc7
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4118d1
push edi
lea ecx, [ebp - 0x20]
call fcn.0040d3b0
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
push edx
push dword [ebp - 0x1b8]
mov ecx, esi
call fcn.0040d0c0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x23c]
push edx
push dword [ebp - 0x21c]
lea ecx, [esi + eax*2]
call fcn.0040d0c0
add esp, 0x10
cmp edi, dword [esi - 8]
jg 0x411cc7
xor eax, eax
mov dword [esi - 0xc], edi
push str..tmp
lea edx, [ebp - 0x20]
mov word [esi + edi*2], ax
lea ecx, [ebp - 0x18]
call fcn.00412c50
and dword [ebp - 0x1c4], 0xfffffffb
or edi, 0xffffffff
add esp, 4
mov byte [ebp - 4], 0x24
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x411944
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411961
mov eax, dword [ebp - 0x2c]
push dword [ebx + eax + 8]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edx, dword [ebp - 0x18]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41197b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x411999
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x28]
mov eax, 0x66666667
mov esi, dword [ebp - 0x2c]
add ebx, 0x14
mov edi, dword [ebp - 0x200]
sub ecx, esi
imul ecx
inc edi
sar edx, 3
mov eax, edx
mov dword [ebp - 0x200], edi
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x411562
or edi, 0xffffffff
mov ebx, dword [ebp - 0x1bc]
mov ecx, dword [ebx + 0x6c]
test ecx, ecx
je 0x411cc2
jmp 0x411c02
xor eax, eax
mov dword [ebp - 0x1a8], 0xfcaacfa5
mov dword [ebp - 0x1a4], 0xe54bffa0
xor ecx, ecx
mov word [ebp - 0x1a0], ax
mov byte [ebp - 0x19e], 1
nop dword [eax]
lea eax, [ecx - 0x6392]
xor word [ebp + ecx*2 - 0x1a8], ax
inc ecx
cmp ecx, 4
jb 0x411a10
mov byte [ebp - 0x19e], 0
xor ecx, ecx
mov dword [ebp - 0x1ec], 0xd286f9e8
mov dword [ebp - 0x1e8], 0xf9c2fa85
mov dword [ebp - 0x1e4], 0x1151c542
mov dword [ebp - 0x1e0], 0x17816379
mov dword [ebp - 0x1dc], 0xc7e0cfcc
mov dword [ebp - 0x1d8], 0xd271e328
mov dword [ebp - 0x1d4], 0xfb7c1306
mov dword [ebp - 0x1d0], 0xee36f9cd
mov dword [ebp - 0x1cc], 0xfb53
mov byte [ebp - 0x1c8], 1
nop
lea eax, [ecx - 0x6391]
xor word [ebp + ecx*2 - 0x1ec], ax
inc ecx
cmp ecx, 0x11
jb 0x411a90
push 1
lea eax, [ebp - 0x1a8]
mov byte [ebp - 0x1c8], 0
push eax
lea eax, [ebp - 0x1ec]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
jne 0x411bd8
mov dword [ebp - 0x1fc], 0x9c049c07
xor ecx, ecx
mov dword [ebp - 0x1f8], 0x9c029c05
mov dword [ebp - 0x1f4], 0x9c4e9c00
mov dword [ebp - 0x1f0], 0x9c599c5a
mov dword [ebp - 0x1ec], 0x9c0f9c00
mov dword [ebp - 0x1e8], 0x9c549c0e
mov dword [ebp - 0x1e4], 0x9c099c01
mov dword [ebp - 0x1e0], 0x9c1f9c15
mov dword [ebp - 0x1dc], 0x9cf79c10
mov dword [ebp - 0x1d8], 0x9cec9ce0
mov dword [ebp - 0x1d4], 0x9ce79cad
mov dword [ebp - 0x1d0], 0x9ceb9cea
mov dword [ebp - 0x1cc], 0x9ca8
mov byte [ebp - 0x1c8], al
nop word [eax + eax]
lea eax, [ecx - 0x6391]
xor word [ebp + ecx*2 - 0x1fc], ax
inc ecx
cmp ecx, 0x19
jb 0x411b60
xor eax, eax
mov byte [ebp - 0x1c8], 0
mov dword [ebp - 0x1a8], 0x9c1f9c01
xor ecx, ecx
mov dword [ebp - 0x1a4], 0x9c1f9c15
mov word [ebp - 0x1a0], ax
mov byte [ebp - 0x19e], 1
lea eax, [ecx - 0x6392]
xor word [ebp + ecx*2 - 0x1a8], ax
inc ecx
cmp ecx, 4
jb 0x411ba1
push 1
push 0
push 0
lea eax, [ebp - 0x1fc]
mov byte [ebp - 0x19e], 0
push eax
lea eax, [ebp - 0x1a8]
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov byte [ebp - 4], 2
or edi, 0xffffffff
mov edx, dword [ebp - 0x1c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4119cd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4119cd
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [ebp - 0x19c]
call fcn.00410130
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x411c85
mov edx, dword [ebp - 0x28]
push ecx
call fcn.00413730
mov ecx, dword [ebp - 0x24]
mov eax, 0x66666667
mov esi, dword [ebp - 0x2c]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
mov eax, esi
shl ecx, 2
cmp ecx, 0x1000
jb 0x411c66
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ce0
push ecx
push esi
call fcn.0055e71a
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x411ca4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055e6d4
mov esp, ebp
pop ebp
ret 4
call fcn.0055ca1a
push 0x80070057
call fcn.004068b0
push 0x80004005
call fcn.004068b0
call fcn.0040d0b0
call fcn.005ce7a3
int3