Function at 0x404fe6
Capabilities:
Check for time delay via gettickcount
Delete directory
Get common file path
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
sub esp, 0x64
mov eax, 0x417cb7
call fcn.00416288
sub esp, 0x3c0
push ebx
push esi
push edi
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x10], esp
push eax
call fcn.00402c05
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [ebp - 0x38], bl
jne 0x40502c
or esi, 0xffffffff
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x6c]
push eax
call fcn.00402ece
mov eax, esi
jmp 0x406117
mov dword [ebp + 0x64], ebx
mov eax, dword [ebp + 0x64]
test eax, eax
je 0x40504b
push str.windows5722XP
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40504b
mov dword [ebp + 0x64], ebx
cmp byte [ebp - 0x38], bl
je 0x405062
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
test byte [eax + 8], 8
mov byte [0x42053c], 1
jne 0x405068
mov byte [0x42053c], bl
mov dword [ebp + 0x64], ebx
mov eax, dword [ebp + 0x64]
add eax, 0x165c
mov dword [ebp + 0x20], ebx
je 0x40507b
inc dword [ebp + 0x64]
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x58], ebx
call esi
mov dword [ebp + 0x58], eax
mov eax, dword [ebp + 0x58]
test eax, eax
je 0x40509e
call esi
mov dword [ebp + 0x58], eax
call fcn.0040d480
cdq
mov ecx, 0x165e
idiv ecx
mov dword [ebp + 0x58], edx
mov dword [ebp + 0x64], 0x369ce3f
mov eax, dword [ebp + 0x64]
test eax, eax
mov eax, dword [ebp + 0x58]
jne 0x4050c2
mov eax, dword [ebp + 0x64]
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x58], ebx
call esi
mov dword [ebp + 0x58], eax
mov eax, dword [ebp + 0x58]
test eax, eax
je 0x4050d9
call esi
mov dword [ebp + 0x58], eax
call fcn.004037f5
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x58], 0x1660
mov dword [ebp + 0x54], ebx
jmp 0x4050f5
call esi
mov dword [ebp + 0x58], eax
inc dword [ebp + 0x54]
mov eax, dword [ebp + 0x54]
cmp eax, 2
jl 0x4050ed
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov byte [ebp - 4], 2
mov dword [ebp + 0x18], ebx
call fcn.00406bf9
mov dword [ebp + 0x14], eax
mov dword [eax], eax
mov eax, dword [ebp + 0x14]
mov dword [eax + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [eax + 8], eax
mov eax, dword [ebp + 0x14]
mov byte [eax + 0x44], 1
mov eax, dword [ebp + 0x14]
mov byte [eax + 0x45], 1
lea ecx, [ebp - 0x5c]
lea eax, [ebp]
mov byte [ebp - 4], 3
call fcn.0040ab0c
xor eax, eax
mov byte [ebp + 0x44], bl
lea edi, [ebp + 0x45]
stosb byte es:[edi], al
mov al, byte [0x41a71d]
mov byte [ebp + 0x44], al
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
mov dword [0x420538], eax
mov byte [ebp + 0x34], bl
xor eax, eax
lea edi, [ebp + 0x35]
stosb byte es:[edi], al
mov al, byte [0x41a729]
mov byte [ebp + 0x34], al
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov byte [ebp - 4], 4
cmp dword [ebp - 0x48], 0x10
mov eax, dword [ebp - 0x5c]
jae 0x405189
lea eax, [ebp - 0x5c]
push eax
lea ebx, [ebp - 0xb4]
call fcn.004099f7
pop ecx
mov byte [ebp - 4], 5
xor edi, edi
mov dword [ebp + 0x54], edi
mov dword [ebp + 0x58], 0x1666
mov dword [ebp + 0x54], edi
jmp 0x4051b3
call esi
mov dword [ebp + 0x58], eax
inc dword [ebp + 0x54]
mov eax, dword [ebp + 0x54]
cmp eax, 2
jl 0x4051ab
mov dword [ebp + 0x64], edi
mov eax, dword [ebp + 0x64]
test eax, eax
je 0x4051da
push str.windows5736XP
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x4051da
mov dword [ebp + 0x64], edi
lea eax, [ebp - 0x3cc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4052be
call fcn.0040d480
cdq
mov ecx, 0x36b7bfa
idiv ecx
mov dword [ebp + 0x64], edx
call fcn.0040d480
cdq
mov ecx, 0x1669
idiv ecx
mov dword [ebp + 0x58], edx
mov eax, dword [ebp + 0x58]
add eax, dword [ebp + 0x64]
mov ecx, dword [ebp + 0x64]
imul eax, ecx
mov dword [ebp + 0x64], eax
lea eax, [ebp - 0x3cc]
push eax
call fcn.0040d2b0
pop ecx
lea ecx, [ebp - 0x3cc]
lea esi, [ebp - 0x2c]
call fcn.00403470
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x40528d
cmp dword [ebp - 0x18], 0x10
mov ecx, dword [ebp - 0x2c]
jae 0x405251
lea ecx, [ebp - 0x2c]
cmp byte [ecx + eax - 1], 0x5c
jne 0x40528d
dec eax
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
lea esi, [ebp - 0x220]
call fcn.0040630a
mov ebx, eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.004033e8
push 1
xor edi, edi
mov byte [ebp - 4], 5
call fcn.00403438
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x405245
call fcn.0040d480
cdq
mov ecx, 0x36ba30b
idiv ecx
mov dword [ebp + 0x64], edx
call fcn.0040d480
cdq
mov ecx, 0x166a
idiv ecx
mov dword [ebp + 0x58], edx
mov eax, dword [ebp + 0x58]
add eax, dword [ebp + 0x64]
mov ecx, dword [ebp + 0x64]
imul eax, ecx
mov dword [ebp + 0x64], eax
xor edi, edi
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4052ca
lea eax, [ebp - 0x2c]
push 1
push eax
call fcn.00408fdd
pop ecx
pop ecx
test al, al
jne 0x4052e9
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0xb4]
lea ecx, [ebp - 0x2c]
call fcn.004034db
call fcn.0040d480
cdq
mov ecx, 0x36bca1c
idiv ecx
mov dword [ebp + 0x64], edx
call fcn.0040d480
cdq
mov ecx, 0x166b
idiv ecx
push dword [ebp + 0x70]
mov dword [ebp + 0x58], edx
mov eax, dword [ebp + 0x58]
add eax, dword [ebp + 0x64]
mov ecx, dword [ebp + 0x64]
imul eax, ecx
mov dword [ebp + 0x64], eax
lea eax, [ebp - 0x204]
call fcn.0040337d
push str.args
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 7
call fcn.0040337d
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp]
push eax
mov byte [ebp - 4], 8
call fcn.0040abd3
xor ebx, ebx
inc ebx
push ebx
xor edi, edi
lea esi, [ebp - 0xd0]
mov byte [ebp - 4], 7
call fcn.00403438
push ebx
lea esi, [ebp - 0x204]
mov byte [ebp - 4], 5
call fcn.00403438
mov dword [ebp + 0x54], edi
mov dword [ebp + 0x58], 0x166c
mov dword [ebp + 0x54], edi
jmp 0x405395
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x58], eax
inc dword [ebp + 0x54]
mov eax, dword [ebp + 0x54]
cmp eax, 2
jl 0x405389
push str.temp
lea eax, [ebp - 0x108]
call fcn.0040337d
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp]
push eax
mov byte [ebp - 4], 9
call fcn.0040abd3
push ebx
xor edi, edi
lea esi, [ebp - 0x108]
mov byte [ebp - 4], 5
call fcn.00403438
mov dword [ebp + 0x64], edi
mov eax, dword [ebp + 0x64]
add eax, 0x166d
je 0x4053e7
inc dword [ebp + 0x64]
xor eax, eax
mov byte [ebp + 0x48], 0
lea edi, [ebp + 0x49]
stosb byte es:[edi], al
mov al, byte [0x41a755]
mov byte [ebp + 0x48], al
push str.path
lea eax, [ebp - 0x1cc]
call fcn.0040337d
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x1cc]
push eax
lea eax, [ebp]
push eax
mov byte [ebp - 4], 0xa
call fcn.0040abd3
push ebx
xor edi, edi
lea esi, [ebp - 0x1cc]
mov byte [ebp - 4], 5
call fcn.00403438
mov dword [ebp + 0x54], edi
mov dword [ebp + 0x58], 0x1670
mov dword [ebp + 0x54], edi
jmp 0x405451
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x58], eax
inc dword [ebp + 0x54]
mov eax, dword [ebp + 0x54]
cmp eax, 2
jl 0x405445
lea eax, [ebp - 0x274]
push 0x1a
push eax
call fcn.00409edd
pop ecx
pop ecx
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 0x10
jb 0x405475
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x140]
call fcn.0040337d
push str.appdata
lea eax, [ebp - 0x1e8]
mov byte [ebp - 4], 0xc
call fcn.0040337d
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x1e8]
push eax
lea eax, [ebp]
push eax
mov byte [ebp - 4], 0xd
call fcn.0040abd3
push ebx
xor edi, edi
lea esi, [ebp - 0x1e8]
mov byte [ebp - 4], 0xc
call fcn.00403438
push ebx
lea esi, [ebp - 0x140]
mov byte [ebp - 4], 0xb
call fcn.00403438
push ebx
lea esi, [ebp - 0x274]
mov byte [ebp - 4], 5
call fcn.00403438
mov dword [ebp + 0x64], edi
mov eax, dword [ebp + 0x64]
test eax, eax
je 0x405501
push str.windows5745XP
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405501
mov dword [ebp + 0x64], edi
lea eax, [ebp - 0x2ac]
push 0x1c
push eax
call fcn.00409edd
pop ecx
pop ecx
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x14], 0x10
jb 0x40551d
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x178]
call fcn.0040337d
push str.appdata_local
lea eax, [ebp - 0x1b0]
mov byte [ebp - 4], 0xf
call fcn.0040337d
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp]
push eax
mov byte [ebp - 4], 0x10
call fcn.0040abd3
push ebx
xor edi, edi
lea esi, [ebp - 0x1b0]
mov byte [ebp - 4], 0xf
call fcn.00403438
push ebx
lea esi, [ebp - 0x178]
mov byte [ebp - 4], 0xe
call fcn.00403438
push ebx
lea esi, [ebp - 0x2ac]
mov byte [ebp - 4], 5
call fcn.00403438
mov dword [ebp + 0x64], edi
mov eax, dword [ebp + 0x64]
add eax, 0x1672
je 0x40559a
inc dword [ebp + 0x64]
lea eax, [ebp - 0x258]
push 0x26
push eax
call fcn.00409edd
pop ecx
pop ecx
mov byte [ebp - 4], 0x11
cmp dword [eax + 0x14], 0x10
jb 0x4055b6
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x124]
call fcn.0040337d
push str.program_files
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 0x12
call fcn.0040337d
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp]
push eax
mov byte [ebp - 4], 0x13
call fcn.0040abd3
push ebx
xor edi, edi
lea esi, [ebp - 0xec]
mov byte [ebp - 4], 0x12
call fcn.00403438
push ebx
lea esi, [ebp - 0x124]
mov byte [ebp - 4], 0x11
call fcn.00403438
push ebx
lea esi, [ebp - 0x258]
mov byte [ebp - 4], 5
call fcn.00403438
lea eax, [ebp - 0x2c8]
push eax
call fcn.0040a17b
pop ecx
mov byte [ebp - 4], 0x14
cmp dword [eax + 0x14], 0x10
jb 0x40563c
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x194]
call fcn.0040337d
push str.uniqueid
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 0x15
call fcn.0040337d
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp]
push eax
mov byte [ebp - 4], 0x16
call fcn.0040abd3
push ebx
xor edi, edi
lea esi, [ebp - 0x15c]
mov byte [ebp - 4], 0x15
call fcn.00403438
push ebx
lea esi, [ebp - 0x194]
mov byte [ebp - 4], 0x14
call fcn.00403438
push ebx
lea esi, [ebp - 0x2c8]
mov byte [ebp - 4], 5
call fcn.00403438
mov dword [ebp + 0x64], edi
mov eax, dword [ebp + 0x64]
add eax, 0x1674
je 0x4056b9
inc dword [ebp + 0x64]
push ebx
xor edi, edi
lea esi, [ebp - 0xb4]
mov byte [ebp - 4], 4
call fcn.00403438
push ebx
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00403438
cmp byte [ebp - 0x38], 0
je 0x4058bd
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
test byte [eax + 8], 4
je 0x4058bd
call fcn.0040d480
cdq
mov ecx, 0x1675
idiv ecx
mov dword [ebp + 0x58], edx
mov dword [ebp + 0x64], 0x36d50c6
mov eax, dword [ebp + 0x64]
test eax, eax
mov eax, dword [ebp + 0x58]
jne 0x405715
mov eax, dword [ebp + 0x64]
mov dword [ebp + 0x64], eax
mov eax, dword [ebp - 0x60]
mov esi, dword [eax + 4]
jmp 0x405729
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40572d
mov esi, eax
test esi, esi
jne 0x405720
mov dword [ebp + 0x54], edi
mov dword [ebp + 0x58], 0x1676
mov dword [ebp + 0x54], edi
jmp 0x405748
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x58], eax
inc dword [ebp + 0x54]
mov eax, dword [ebp + 0x54]
cmp eax, 2
jl 0x40573c
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x58], edi
call ebx
mov dword [ebp + 0x58], eax
mov eax, dword [ebp + 0x58]
test eax, eax
je 0x40576a
call ebx
mov dword [ebp + 0x58], eax
test esi, esi
je 0x4058c3
test dword [esi], 0x10000
je 0x4058c3
call fcn.0040d480
cdq
mov ecx, 0x1678
idiv ecx
mov dword [ebp + 0x58], edx
mov dword [ebp + 0x64], 0x36dc5f9
mov eax, dword [ebp + 0x64]
test eax, eax
mov eax, dword [ebp + 0x58]
jne 0x4057a2
mov eax, dword [ebp + 0x64]
mov dword [ebp + 0x64], eax
xor edi, edi
mov dword [ebp + 0x64], edi
mov eax, dword [ebp + 0x64]
je 0x4057c4
push str.windows5753XP
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x4057c4
mov dword [ebp + 0x64], edi
push str.USER32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], edi
mov eax, dword [ebp + 0x64]
test eax, eax
je 0x4057f1
push str.windows5754XP
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x4057f1
mov dword [ebp + 0x64], edi
cmp dword [ebp + 0x60], edi
je 0x4058c3
mov dword [ebp + 0x54], edi
mov dword [ebp + 0x58], 0x167b
mov dword [ebp + 0x54], edi
jmp 0x405811
call ebx
mov dword [ebp + 0x58], eax
inc dword [ebp + 0x54]
mov eax, dword [ebp + 0x54]
cmp eax, 2
jl 0x405809
push str.MessageBoxA
push dword [ebp + 0x60]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + 0x58], 0
mov edi, eax
call ebx
mov dword [ebp + 0x58], eax
mov eax, dword [ebp + 0x58]
test eax, eax
je 0x405841
call ebx
mov dword [ebp + 0x58], eax
test edi, edi
je 0x4058c3
call fcn.0040d480
cdq
mov ecx, 0x36eb05f
idiv ecx
mov dword [ebp + 0x64], edx
call fcn.0040d480
cdq
mov ecx, 0x167e
idiv ecx
push 4
push str.Question
mov dword [ebp + 0x58], edx
mov eax, dword [ebp + 0x58]
add eax, dword [ebp + 0x64]
mov ecx, dword [ebp + 0x64]
push dword [esi + 0x1c]
imul eax, ecx
push 0
mov dword [ebp + 0x64], eax
call edi
cmp eax, 6
je 0x4058a7
lea eax, [ebp + 0x10]
push eax
mov byte [ebp - 4], 0x17
call fcn.0040642f
lea esi, [ebp]
mov byte [ebp - 4], 1
call fcn.00406780
xor esi, esi
jmp 0x405018
mov dword [ebp + 0x64], 0
mov eax, dword [ebp + 0x64]
add eax, 0x167f
je 0x4058c3
inc dword [ebp + 0x64]
jmp 0x4058c3
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [ebp - 4], 0x18
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 4]
xor edi, edi
mov dword [ebp + 0x60], edi
xor esi, esi
mov dword [ebp + 0x58], esi
mov dword [ebp + 0x54], eax
cmp eax, edi
je 0x405c2d
lea eax, [esi + 1]
lea ecx, [ebp + 0x24]
call fcn.004064ad
mov dword [ebp + 0x50], edi
call ebx
mov dword [ebp + 0x50], eax
mov eax, dword [ebp + 0x50]
test eax, eax
je 0x405901
call ebx
mov dword [ebp + 0x50], eax
mov eax, dword [ebp + 0x28]
sub eax, dword [ebp + 0x24]
push 0x58
cdq
pop ecx
idiv ecx
cmp eax, esi
ja 0x40591b
push str.invalid_vector_T__subscript
call fcn.00415cb0
mov edi, esi
imul edi, edi, 0x58
add edi, dword [ebp + 0x24]
mov dword [ebp + 0x64], 0
mov dword [ebp + 0x5c], 0x1684
mov dword [ebp + 0x50], edi
mov dword [ebp + 0x64], 0
mov eax, dword [ebp + 0x64]
cmp eax, 2
jge 0x40594d
call ebx
mov dword [ebp + 0x5c], eax
inc dword [ebp + 0x64]
jmp 0x40593b
inc esi
mov dword [edi + 4], esi
mov dword [ebp + 0x64], 0
mov eax, dword [ebp + 0x64]
test eax, eax
je 0x405978
push str.windows5765XP
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405978
mov dword [ebp + 0x64], 0
mov esi, dword [ebp + 0x54]
mov dword [edi], esi
mov dword [ebp + 0x5c], 0
call ebx
mov dword [ebp + 0x5c], eax
mov eax, dword [ebp + 0x5c]
test eax, eax
je 0x405995
call ebx
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x64], 0
mov eax, dword [ebp + 0x64]
test eax, eax
je 0x4059bc
push str.windows5767XP
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4059bc
mov dword [ebp + 0x64], 0
test dword [esi], 0x800
je 0x405a9c
call fcn.0040d480
cdq
mov ecx, 0x1688
idiv ecx
mov dword [ebp + 0x5c], edx
mov dword [ebp + 0x64], 0x3703709
mov eax, dword [ebp + 0x64]
test eax, eax
mov eax, dword [ebp + 0x5c]
jne 0x4059ec
mov eax, dword [ebp + 0x64]
mov dword [ebp + 0x64], eax
call fcn.0040b192
test eax, eax
jne 0x405a05
call fcn.0040b062
test eax, eax
je 0x405a9c
call fcn.0040d480
cdq
mov ecx, 0x3705e1a
idiv ecx
mov dword [ebp + 0x64], edx
call fcn.0040d480
cdq
mov ecx, 0x1689
idiv ecx
lea edi, [ebp + 0x41]
mov dword [ebp + 0x5c], edx
mov eax, dword [ebp + 0x5c]
add eax, dword [ebp + 0x64]
mov ecx, dword [ebp + 0x64]
or dword [esi], 0x80000000
imul eax, ecx
mov dword [ebp + 0x64], eax
mov byte [ebp + 0x40], 0
xor eax, eax
stosb byte es:[edi], al
mov al, byte [0x41a811]
and dword [ebp - 0x7c], 0
mov byte [ebp + 0x40], al
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
lea ecx, [ebp - 0x8c]
lea eax, [ebp]
mov byte [ebp - 4], 0x19
call fcn.0040ab0c
push 1
xor edi, edi
lea esi, [ebp - 0x8c]
mov byte [ebp - 4], 0x18
call fcn.00403438
mov dword [ebp + 0x64], edi
mov eax, dword [ebp + 0x64]
add eax, 0x168b
je 0x405c16
inc dword [ebp + 0x64]
jmp 0x405c16
test dword [esi], 0x1000
je 0x405afe
mov dword [ebp + 0x5c], 0
call ebx
mov dword [ebp + 0x5c], eax
mov eax, dword [ebp + 0x5c]
test eax, eax
je 0x405abc
call ebx
mov dword [ebp + 0x5c], eax
mov ebx, 0x41a81c
push ebx
call fcn.0040d2b0
pop ecx
lea esi, [edi + 0x1c]
mov ecx, ebx
call fcn.00403470
call fcn.0040d480
cdq
mov ecx, 0x168e
idiv ecx
mov dword [ebp + 0x5c], edx
mov dword [ebp + 0x64], 0x371216f
mov eax, dword [ebp + 0x64]
test eax, eax
mov eax, dword [ebp + 0x5c]
jne 0x405af6
mov eax, dword [ebp + 0x64]
mov dword [ebp + 0x64], eax
jmp 0x405bf7
lea eax, [ebp]
push eax
push esi
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00402f9a
mov ebx, eax
lea eax, [edi + 0x1c]
mov byte [ebp - 4], 0x1a
call fcn.004033e8
push 1
xor edi, edi
lea esi, [ebp - 0x290]
mov byte [ebp - 4], 0x18
call fcn.00403438
mov esi, dword [ebp + 0x50]
cmp dword [esi + 0x2c], edi
jne 0x405bcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._ec_08x__extract_failed
mov ecx, esi
call fcn.0040438b
mov dword [ebp + 0x64], edi
pop ecx
mov dword [ebp + 0x5c], 0x1691
pop ecx
mov dword [ebp + 0x64], edi
mov eax, dword [ebp + 0x64]
cmp eax, 2
jge 0x405b78
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x5c], eax
inc dword [ebp + 0x64]
jmp 0x405b62
mov eax, dword [ebp + 0x54]
test byte [eax], 0x20
je 0x405b9c
lea ecx, [ebp - 0x98]
call fcn.0040d151
push 0x41b64c
lea eax, [ebp - 0x98]
push eax
call fcn.00410998
call fcn.0040d480
cdq
mov ecx, 0x371bdb3
idiv ecx
mov dword [ebp + 0x64], edx
call fcn.0040d480
cdq
mov ecx, 0x1692
idiv ecx
mov dword [ebp + 0x5c], edx
mov eax, dword [ebp + 0x5c]
add eax, dword [ebp + 0x64]
mov ecx, dword [ebp + 0x64]
imul eax, ecx
mov dword [ebp + 0x64], eax
jmp 0x405bd8
mov eax, dword [ebp + 0x54]
mov eax, dword [eax]
and eax, 0x10
or dword [ebp + 0x60], eax
mov dword [ebp + 0x5c], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x5c], eax
mov eax, dword [ebp + 0x5c]
test eax, eax
je 0x405bf4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x5c], eax
mov edi, dword [ebp + 0x50]
lea ecx, [edi + 0x1c]
lea eax, [ebp]
call fcn.0040ab0c
mov dword [ebp + 0x50], 0
mov eax, dword [ebp + 0x50]
add eax, 0x1694
je 0x405c16
inc dword [ebp + 0x50]
mov esi, dword [ebp + 0x58]
mov eax, dword [ebp + 0x54]
mov eax, dword [eax + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
inc esi
xor edi, edi
jmp 0x4058d4
mov esi, dword [ebp + 0x24]
mov dword [ebp + 0x64], esi
call fcn.0040d480
cdq
mov ecx, 0x1695
idiv ecx
mov dword [ebp + 0x5c], edx
mov dword [ebp + 0x50], 0x37232e6
mov eax, dword [ebp + 0x50]
test eax, eax
mov eax, dword [ebp + 0x5c]
jne 0x405c57
mov eax, dword [ebp + 0x50]
mov dword [ebp + 0x50], eax
call fcn.0040d480
cdq
mov ecx, 0x37259f7
idiv ecx
mov dword [ebp + 0x50], edx
call fcn.0040d480
cdq
mov ecx, 0x1696
idiv ecx
mov dword [ebp + 0x5c], edx
mov eax, dword [ebp + 0x5c]
add eax, dword [ebp + 0x50]
mov ecx, dword [ebp + 0x50]
imul eax, ecx
mov dword [ebp + 0x50], eax
cmp esi, dword [ebp + 0x28]
je 0x405dca
mov dword [ebp + 0x5c], edi
call ebx
mov dword [ebp + 0x5c], eax
mov eax, dword [ebp + 0x5c]
test eax, eax
je 0x405ca6
call ebx
mov dword [ebp + 0x5c], eax
mov eax, dword [esi]
mov eax, dword [eax]
test al, 2
je 0x405dbf
cmp dword [esi + 0x2c], edi
je 0x405dbf
test eax, eax
js 0x405dbf
call fcn.0040d480
cdq
mov ecx, 0x1699
idiv ecx
mov dword [ebp + 0x5c], edx
mov dword [ebp + 0x50], 0x372cf2a
mov eax, dword [ebp + 0x50]
test eax, eax
mov eax, dword [ebp + 0x5c]
jne 0x405ce7
mov eax, dword [ebp + 0x50]
mov dword [ebp + 0x50], eax
mov eax, dword [esi]
test dword [eax], 0x800
je 0x405d3d
call fcn.0040b192
cmp eax, edi
jne 0x405dbf
call fcn.0040d480
cdq
mov ecx, 0x3731d4c
idiv ecx
mov dword [ebp + 0x50], edx
call fcn.0040d480
cdq
mov ecx, 0x169b
idiv ecx
mov dword [ebp + 0x5c], edx
mov eax, dword [ebp + 0x5c]
add eax, dword [ebp + 0x50]
mov ecx, dword [ebp + 0x50]
imul eax, ecx
mov dword [ebp + 0x50], eax
call fcn.0040b062
test eax, eax
jne 0x405dbf
push 1
lea eax, [ebp]
push eax
mov eax, dword [esi]
push dword [eax + 0x1c]
lea eax, [ebp - 0x23c]
push eax
call fcn.00407bbb
add esp, 0x10
mov ebx, eax
lea eax, [esi + 0x38]
mov byte [ebp - 4], 0x1b
call fcn.004033e8
push 1
xor edi, edi
lea esi, [ebp - 0x23c]
mov byte [ebp - 4], 0x18
call fcn.00403438
xor ebx, ebx
mov dword [ebp + 0x50], ebx
mov eax, dword [ebp + 0x50]
add eax, 0x169d
je 0x405d8a
inc dword [ebp + 0x50]
mov dword [ebp + 0x50], ebx
mov eax, dword [ebp + 0x50]
add eax, 0x169e
je 0x405d9a
inc dword [ebp + 0x50]
push dword [ebp + 0x64]
call fcn.0040479c
mov esi, dword [ebp + 0x64]
mov byte [ebp + 0x38], bl
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
lea edi, [ebp + 0x39]
stosb byte es:[edi], al
mov al, byte [0x41a83d]
pop ecx
mov byte [ebp + 0x38], al
xor edi, edi
add esi, 0x58
mov dword [ebp + 0x64], esi
jmp 0x405c89
cmp dword [ebp + 0x60], edi
je 0x406054
mov dword [ebp + 0x60], edi
mov eax, dword [ebp + 0x60]
add eax, 0x16a0
je 0x405de3
inc dword [ebp + 0x60]
mov esi, dword [ebp + 0x24]
call fcn.0040d480
cdq
mov ecx, 0x37407b2
idiv ecx
mov dword [ebp + 0x60], edx
call fcn.0040d480
cdq
mov ecx, 0x16a1
idiv ecx
mov dword [ebp + 0x5c], edx
mov eax, dword [ebp + 0x5c]
add eax, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x60]
imul eax, ecx
mov dword [ebp + 0x60], eax
cmp esi, dword [ebp + 0x28]
je 0x405edb
cmp dword [esi + 8], edi
je 0x405ed3
mov eax, dword [esi]
test byte [eax], 8
je 0x405ed3
call fcn.0040d480
cdq
mov ecx, 0x3747ce5
idiv ecx
mov dword [ebp + 0x60], edx
call fcn.0040d480
cdq
mov ecx, 0x16a4
idiv ecx
push 0xffffffffffffffff
mov dword [ebp + 0x5c], edx
mov eax, dword [ebp + 0x5c]
add eax, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x60]
push dword [esi + 8]
imul eax, ecx
mov dword [ebp + 0x60], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.0040d480
cdq
mov ecx, 0x374a3f6
idiv ecx
mov dword [ebp + 0x60], edx
call fcn.0040d480
cdq
mov ecx, 0x16a5
idiv ecx
mov dword [ebp + 0x5c], edx
mov eax, dword [ebp + 0x5c]
add eax, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x60]
push dword [esi + 8]
imul eax, ecx
mov dword [ebp + 0x60], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0040d480
cdq
mov ecx, 0x374cb07
idiv ecx
mov dword [ebp + 0x60], edx
call fcn.0040d480
cdq
mov ecx, 0x16a6
idiv ecx
mov dword [ebp + 0x5c], edx
mov eax, dword [ebp + 0x5c]
add eax, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x60]
imul eax, ecx
mov dword [ebp + 0x60], eax
add esi, 0x58
jmp 0x405e15
mov esi, dword [ebp + 0x24]
call fcn.0040d480
cdq
mov ecx, 0x16a7
idiv ecx
mov dword [ebp + 0x5c], edx
mov dword [ebp + 0x60], 0x374f218
mov eax, dword [ebp + 0x60]
test eax, eax
mov eax, dword [ebp + 0x5c]
jne 0x405f02
mov eax, dword [ebp + 0x60]
mov dword [ebp + 0x60], eax
cmp esi, dword [ebp + 0x28]
je 0x406054
mov eax, dword [esi]
test byte [eax], 0x10
je 0x405f2c
cmp dword [esi + 0x2c], edi
je 0x405f2c
lea eax, [esi + 0x1c]
cmp dword [eax + 0x14], 0x10
jb 0x405f25
mov eax, dword [eax]
push eax
call fcn.00403f3e
pop ecx
add esi, 0x58
jmp 0x405f05
mov dword [ebp - 4], 3
mov esi, dword [0x420558]
mov byte [ebp + 0x3c], 0
xor eax, eax
lea edi, [ebp + 0x3d]
stosb byte es:[edi], al
mov al, byte [0x41a925]
mov byte [ebp + 0x3c], al
jmp 0x40608b
cmp dword [esi + 0x14], 0x10
jb 0x40607f
mov eax, dword [esi]
jmp 0x406081
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
add esi, 0x1c
cmp esi, dword [0x42055c]
jne 0x406075
call fcn.0040d480
cdq
mov ecx, 0x3776328
idiv ecx
mov dword [ebp + 0x60], edx
call fcn.0040d480
cdq
mov ecx, 0x16b7
idiv ecx
mov dword [ebp + 0x5c], edx
mov eax, dword [ebp + 0x5c]
add eax, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x60]
imul eax, ecx
mov dword [ebp + 0x60], eax
call fcn.004087fc
lea eax, [ebp + 0x10]
push eax
mov byte [ebp - 4], 0x1d
call fcn.0040642f
lea esi, [ebp]
mov byte [ebp - 4], 1
call fcn.00406780
mov byte [ebp - 4], 0
mov edi, dword [ebp + 0x24]
test edi, edi
je 0x406107
mov esi, edi
cmp edi, dword [ebp + 0x28]
je 0x406100
push esi
call fcn.0040717a
add esi, 0x58
cmp esi, dword [ebp + 0x28]
jne 0x4060f2
push edi
call fcn.0040d4a1
pop ecx
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x6c]
push eax
call fcn.00402ece
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add ebp, 0x68
leave
ret