Function at 0x402d30
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56dee4
mov eax, dword fs:[0]
push eax
sub esp, 0x618
mov eax, dword [0x5cfff0]
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 esi, ecx
lea ecx, [ebp - 0x624]
call fcn.004168d9
mov dword [ebp - 4], 0
test esi, esi
jne 0x402d7a
xor eax, eax
jmp 0x402d7d
mov eax, dword [esi + 0x20]
push 0
push 0
lea ecx, [ebp - 0x2a8]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x5f0]
call fcn.00405220
push 0xc
mov byte [ebp - 4], 1
call fcn.00407593
mov esi, eax
add esp, 4
mov dword [ebp - 0x5cc], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x402ddb
push 0x5b02ec
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call fcn.0054d340
mov dword [esi], eax
jmp 0x402ddd
xor esi, esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x5cc], esi
test esi, esi
jne 0x402df5
push 0x8007000e
call fcn.0054d320
lea eax, [ebp - 0x5cc]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x5f0]
lea ecx, [ebp - 0x600]
push eax
call fcn.00404a80
add esp, 4
mov byte [ebp - 4], 4
mov eax, dword [eax]
test eax, eax
je 0x402e22
mov eax, dword [eax]
jmp 0x402e24
xor eax, eax
push eax
lea ecx, [ebp - 0x5fc]
call fcn.00405220
mov ecx, dword [ebp - 0x600]
or ebx, 0xffffffff
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x5d0], ecx
test ecx, ecx
je 0x402e9e
mov eax, ebx
lock xadd dword [ecx + 8], eax
dec eax
jne 0x402e94
test ecx, ecx
je 0x402e94
mov eax, dword [ecx]
test eax, eax
je 0x402e6c
push eax
call edi
mov ecx, dword [ebp - 0x5d0]
mov dword [ecx], 0
mov eax, dword [ecx + 4]
test eax, eax
je 0x402e89
push eax
call fcn.004075ca
mov ecx, dword [ebp - 0x5d0]
add esp, 4
mov dword [ecx + 4], 0
push 0xc
push ecx
call fcn.0054c0fb
add esp, 8
mov dword [ebp - 0x600], 0
mov byte [ebp - 4], 7
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x402edd
mov eax, dword [esi]
test eax, eax
je 0x402ebb
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x402ed2
push eax
call fcn.004075ca
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0054c0fb
add esp, 8
push 0xc
call fcn.00407593
mov esi, eax
add esp, 4
mov dword [ebp - 0x5cc], esi
mov byte [ebp - 4], 8
test esi, esi
je 0x402f13
push 0x5b02fc
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call fcn.0054d340
mov dword [esi], eax
jmp 0x402f15
xor esi, esi
mov byte [ebp - 4], 7
mov dword [ebp - 0x5cc], esi
test esi, esi
jne 0x402f2d
push 0x8007000e
call fcn.0054d320
lea eax, [ebp - 0x5cc]
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x5f0]
lea ecx, [ebp - 0x604]
push eax
call fcn.00404a80
add esp, 4
mov byte [ebp - 4], 0xa
mov eax, dword [eax]
test eax, eax
je 0x402f5a
mov eax, dword [eax]
jmp 0x402f5c
xor eax, eax
push eax
lea ecx, [ebp - 0x5f8]
call fcn.00405220
mov ecx, dword [ebp - 0x604]
mov dword [ebp - 0x5d0], ecx
test ecx, ecx
je 0x402fcd
mov eax, ebx
lock xadd dword [ecx + 8], eax
dec eax
jne 0x402fc3
test ecx, ecx
je 0x402fc3
mov eax, dword [ecx]
test eax, eax
je 0x402f9b
push eax
call edi
mov ecx, dword [ebp - 0x5d0]
mov dword [ecx], 0
mov eax, dword [ecx + 4]
test eax, eax
je 0x402fb8
push eax
call fcn.004075ca
mov ecx, dword [ebp - 0x5d0]
add esp, 4
mov dword [ecx + 4], 0
push 0xc
push ecx
call fcn.0054c0fb
add esp, 8
mov dword [ebp - 0x604], 0
mov byte [ebp - 4], 0xd
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x40300c
mov eax, dword [esi]
test eax, eax
je 0x402fea
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x403001
push eax
call fcn.004075ca
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0054c0fb
add esp, 8
push 0xc
call fcn.00407593
mov esi, eax
add esp, 4
mov dword [ebp - 0x5cc], esi
mov byte [ebp - 4], 0xe
test esi, esi
je 0x403042
push 0x5b030c
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call fcn.0054d340
mov dword [esi], eax
jmp 0x403044
xor esi, esi
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x5cc], esi
test esi, esi
jne 0x40305c
push 0x8007000e
call fcn.0054d320
lea eax, [ebp - 0x5cc]
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x5f0]
lea ecx, [ebp - 0x608]
push eax
call fcn.00404a80
add esp, 4
mov byte [ebp - 4], 0x10
mov eax, dword [eax]
test eax, eax
je 0x403089
mov eax, dword [eax]
jmp 0x40308b
xor eax, eax
push eax
lea ecx, [ebp - 0x5f4]
call fcn.00405220
mov ecx, dword [ebp - 0x608]
mov dword [ebp - 0x5d0], ecx
test ecx, ecx
je 0x4030fc
mov eax, ebx
lock xadd dword [ecx + 8], eax
dec eax
jne 0x4030f2
test ecx, ecx
je 0x4030f2
mov eax, dword [ecx]
test eax, eax
je 0x4030ca
push eax
call edi
mov ecx, dword [ebp - 0x5d0]
mov dword [ecx], 0
mov eax, dword [ecx + 4]
test eax, eax
je 0x4030e7
push eax
call fcn.004075ca
mov ecx, dword [ebp - 0x5d0]
add esp, 4
mov dword [ecx + 4], 0
push 0xc
push ecx
call fcn.0054c0fb
add esp, 8
mov dword [ebp - 0x608], 0
mov byte [ebp - 4], 0x13
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x40313b
mov eax, dword [esi]
test eax, eax
je 0x403119
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x403130
push eax
call fcn.004075ca
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0054c0fb
add esp, 8
push 0
push dword [ebp - 0x5fc]
lea ecx, [ebp - 0x624]
call fcn.00416b6a
test eax, eax
je 0x4033fb
push str..lnk
lea ecx, [ebp - 0x5e8]
call fcn.00404730
push 0x5b032c
lea ecx, [ebp - 0x5d8]
mov byte [ebp - 4], 0x14
call fcn.00404730
push 0x5b0320
lea ecx, [ebp - 0x5dc]
mov byte [ebp - 4], 0x15
call fcn.00404730
lea eax, [ebp - 0x5dc]
mov byte [ebp - 4], 0x16
mov edx, dword [ebp - 0x5f0]
lea ecx, [ebp - 0x5e0]
push eax
call fcn.00404a80
add esp, 4
lea ecx, [ebp - 0x5d8]
mov byte [ebp - 4], 0x17
push ecx
lea ecx, [ebp - 0x5e4]
push ecx
mov ecx, eax
call fcn.004046c0
lea ecx, [ebp - 0x5e8]
mov byte [ebp - 4], 0x18
push ecx
lea ecx, [ebp - 0x5d0]
push ecx
mov ecx, eax
call fcn.004046c0
mov byte [ebp - 4], 0x19
mov eax, dword [eax]
test eax, eax
je 0x4031ed
mov eax, dword [eax]
jmp 0x4031ef
xor eax, eax
push eax
lea ecx, [ebp - 0x5cc]
call fcn.00405220
mov esi, dword [ebp - 0x5d0]
test esi, esi
je 0x40324e
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x403244
test esi, esi
je 0x403244
mov eax, dword [esi]
test eax, eax
je 0x403222
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x403239
push eax
call fcn.004075ca
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0054c0fb
add esp, 8
mov dword [ebp - 0x5d0], 0
mov esi, dword [ebp - 0x5e4]
test esi, esi
je 0x4032a1
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x403297
test esi, esi
je 0x403297
mov eax, dword [esi]
test eax, eax
je 0x403275
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40328c
push eax
call fcn.004075ca
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0054c0fb
add esp, 8
mov dword [ebp - 0x5e4], 0
mov esi, dword [ebp - 0x5e0]
test esi, esi
je 0x4032f4
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x4032ea
test esi, esi
je 0x4032ea
mov eax, dword [esi]
test eax, eax
je 0x4032c8
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4032df
push eax
call fcn.004075ca
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0054c0fb
add esp, 8
mov dword [ebp - 0x5e0], 0
mov esi, dword [ebp - 0x5dc]
test esi, esi
je 0x403339
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x403339
mov eax, dword [esi]
test eax, eax
je 0x403317
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40332e
push eax
call fcn.004075ca
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0054c0fb
add esp, 8
mov esi, dword [ebp - 0x5d8]
test esi, esi
je 0x40337e
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x40337e
mov eax, dword [esi]
test eax, eax
je 0x40335c
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x403373
push eax
call fcn.004075ca
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0054c0fb
add esp, 8
mov byte [ebp - 4], 0x20
mov esi, dword [ebp - 0x5e8]
test esi, esi
je 0x4033c7
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x4033c7
mov eax, dword [esi]
test eax, eax
je 0x4033a5
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4033bc
push eax
call fcn.004075ca
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0054c0fb
add esp, 8
push 0
push dword [ebp - 0x5cc]
push dword [ebp - 0x5fc]
call fcn.00417a10
mov byte [ebp - 4], 0x13
mov eax, ebx
mov edx, dword [ebp - 0x5cc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4033fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push dword [ebp - 0x5f8]
lea ecx, [ebp - 0x624]
call fcn.00416b6a
test eax, eax
je 0x4036bb
push str..lnk
lea ecx, [ebp - 0x5dc]
call fcn.00404730
push 0x5b032c
lea ecx, [ebp - 0x5e0]
mov byte [ebp - 4], 0x21
call fcn.00404730
push 0x5b0338
lea ecx, [ebp - 0x5e4]
mov byte [ebp - 4], 0x22
call fcn.00404730
lea eax, [ebp - 0x5e4]
mov byte [ebp - 4], 0x23
mov edx, dword [ebp - 0x5f0]
lea ecx, [ebp - 0x5d0]
push eax
call fcn.00404a80
add esp, 4
lea ecx, [ebp - 0x5e0]
mov byte [ebp - 4], 0x24
push ecx
lea ecx, [ebp - 0x5e8]
push ecx
mov ecx, eax
call fcn.004046c0
lea ecx, [ebp - 0x5dc]
mov byte [ebp - 4], 0x25
push ecx
lea ecx, [ebp - 0x5cc]
push ecx
mov ecx, eax
call fcn.004046c0
mov byte [ebp - 4], 0x26
mov eax, dword [eax]
test eax, eax
je 0x4034ad
mov eax, dword [eax]
jmp 0x4034af
xor eax, eax
push eax
lea ecx, [ebp - 0x5d8]
call fcn.00405220
mov esi, dword [ebp - 0x5cc]
test esi, esi
je 0x40350e
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x403504
test esi, esi
je 0x403504
mov eax, dword [esi]
test eax, eax
je 0x4034e2
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4034f9
push eax
call fcn.004075ca
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0054c0fb
add esp, 8
mov dword [ebp - 0x5cc], 0
mov esi, dword [ebp - 0x5e8]
test esi, esi
je 0x403561
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x403557
test esi, esi
je 0x403557
mov eax, dword [esi]
test eax, eax
je 0x403535
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40354c
push eax
call fcn.004075ca
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0054c0fb
add esp, 8
mov dword [ebp - 0x5e8], 0
mov esi, dword [ebp - 0x5d0]
test esi, esi
je 0x4035b4
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x4035aa
test esi, esi
je 0x4035aa
mov eax, dword [esi]
test eax, eax
je 0x403588
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40359f
push eax
call fcn.004075ca
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0054c0fb
add esp, 8
mov dword [ebp - 0x5d0], 0
mov esi, dword [ebp - 0x5e4]
test esi, esi
je 0x4035f9
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x4035f9
mov eax, dword [esi]
test eax, eax
je 0x4035d7
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4035ee
push eax
call fcn.004075ca
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0054c0fb
add esp, 8
mov esi, dword [ebp - 0x5e0]
test esi, esi
je 0x40363e
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x40363e
mov eax, dword [esi]
test eax, eax
je 0x40361c
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x403633
push eax
call fcn.004075ca
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0054c0fb
add esp, 8
mov byte [ebp - 4], 0x2d
mov esi, dword [ebp - 0x5dc]
test esi, esi
je 0x403687
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x403687
mov eax, dword [esi]
test eax, eax
je 0x403665
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40367c
push eax
call fcn.004075ca
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0054c0fb
add esp, 8
push 0
push dword [ebp - 0x5d8]
push dword [ebp - 0x5f8]
call fcn.00417a10
mov byte [ebp - 4], 0x13
mov eax, ebx
mov edx, dword [ebp - 0x5d8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4036bb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push dword [ebp - 0x5f4]
lea ecx, [ebp - 0x624]
call fcn.00416b6a
test eax, eax
je 0x40397b
push str..lnk
lea ecx, [ebp - 0x5dc]
call fcn.00404730
push 0x5b032c
lea ecx, [ebp - 0x5e0]
mov byte [ebp - 4], 0x2e
call fcn.00404730
push 0x5b0344
lea ecx, [ebp - 0x5e4]
mov byte [ebp - 4], 0x2f
call fcn.00404730
lea eax, [ebp - 0x5e4]
mov byte [ebp - 4], 0x30
mov edx, dword [ebp - 0x5f0]
lea ecx, [ebp - 0x5d0]
push eax
call fcn.00404a80
add esp, 4
lea ecx, [ebp - 0x5e0]
mov byte [ebp - 4], 0x31
push ecx
lea ecx, [ebp - 0x5e8]
push ecx
mov ecx, eax
call fcn.004046c0
lea ecx, [ebp - 0x5dc]
mov byte [ebp - 4], 0x32
push ecx
lea ecx, [ebp - 0x5cc]
push ecx
mov ecx, eax
call fcn.004046c0
mov byte [ebp - 4], 0x33
mov eax, dword [eax]
test eax, eax
je 0x40376d
mov eax, dword [eax]
jmp 0x40376f
xor eax, eax
push eax
lea ecx, [ebp - 0x5d8]
call fcn.00405220
mov esi, dword [ebp - 0x5cc]
test esi, esi
je 0x4037ce
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x4037c4
test esi, esi
je 0x4037c4
mov eax, dword [esi]
test eax, eax
je 0x4037a2
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4037b9
push eax
call fcn.004075ca
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0054c0fb
add esp, 8
mov dword [ebp - 0x5cc], 0
mov esi, dword [ebp - 0x5e8]
test esi, esi
je 0x403821
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x403817
test esi, esi
je 0x403817
mov eax, dword [esi]
test eax, eax
je 0x4037f5
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40380c
push eax
call fcn.004075ca
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0054c0fb
add esp, 8
mov dword [ebp - 0x5e8], 0
mov esi, dword [ebp - 0x5d0]
test esi, esi
je 0x403874
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x40386a
test esi, esi
je 0x40386a
mov eax, dword [esi]
test eax, eax
je 0x403848
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40385f
push eax
call fcn.004075ca
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0054c0fb
add esp, 8
mov dword [ebp - 0x5d0], 0
mov esi, dword [ebp - 0x5e4]
test esi, esi
je 0x4038b9
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x4038b9
mov eax, dword [esi]
test eax, eax
je 0x403897
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4038ae
push eax
call fcn.004075ca
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0054c0fb
add esp, 8
mov esi, dword [ebp - 0x5e0]
test esi, esi
je 0x4038fe
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x4038fe
mov eax, dword [esi]
test eax, eax
je 0x4038dc
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4038f3
push eax
call fcn.004075ca
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0054c0fb
add esp, 8
mov byte [ebp - 4], 0x3a
mov esi, dword [ebp - 0x5dc]
test esi, esi
je 0x403947
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x403947
mov eax, dword [esi]
test eax, eax
je 0x403925
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40393c
push eax
call fcn.004075ca
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0054c0fb
add esp, 8
push 0
push dword [ebp - 0x5d8]
push dword [ebp - 0x5f4]
call fcn.00417a10
mov byte [ebp - 4], 0x13
mov eax, ebx
mov edx, dword [ebp - 0x5d8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40397b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x104
lea eax, [ebp - 0x4b4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x4b4]
push eax
lea ecx, [ebp - 0x5ec]
call fcn.00405220
mov byte [ebp - 4], 0x3b
push 0x5c
push dword [ebp - 0x5ec]
call fcn.0054ed77
add esp, 8
test eax, eax
je 0x403a0b
sub eax, dword [ebp - 0x5ec]
sar eax, 1
cmp eax, 0xffffffff
je 0x403a0b
inc eax
lea ecx, [ebp - 0x5ec]
push eax
lea eax, [ebp - 0x5cc]
push eax
call fcn.004044b0
push eax
lea ecx, [ebp - 0x5ec]
mov byte [ebp - 4], 0x3c
call fcn.00404b60
mov byte [ebp - 4], 0x3b
mov eax, ebx
mov edx, dword [ebp - 0x5cc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403a0b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x5ec]
cmp dword [eax - 0xc], 0
jne 0x403a5d
lea eax, [ebp - 0xa0]
push eax
push 0x90
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0xa0]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x403a30
mov ax, word [0x5b02cc]
mov word [ecx], ax
mov al, byte [0x5b02ce]
mov byte [ecx + 2], al
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x5ec]
call fcn.00404ca0
call fcn.00409fff
mov ecx, eax
test ecx, ecx
jne 0x403a72
push 0x80004005
call fcn.00401ee0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x5dc], ebx
mov eax, str.ipsec32.sys
mov byte [ebp - 4], 0x3d
test eax, 0xffff0000
jne 0x403aac
movzx esi, ax
push esi
call fcn.00415062
test eax, eax
je 0x403ac2
push esi
push eax
lea ecx, [ebp - 0x5dc]
call fcn.00404f00
jmp 0x403abc
push str.ipsec32.sys
lea ecx, [ebp - 0x5dc]
call fcn.00404ca0
mov ebx, dword [ebp - 0x5dc]
mov byte [ebp - 4], 0x3e
call fcn.00409fff
mov ecx, eax
test ecx, ecx
jne 0x403adb
push 0x80004005
call fcn.00401ee0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x5e0], edi
mov eax, str.ipsec64.sys
mov byte [ebp - 4], 0x3f
test eax, 0xffff0000
jne 0x403b15
movzx esi, ax
push esi
call fcn.00415062
test eax, eax
je 0x403b2b
push esi
push eax
lea ecx, [ebp - 0x5e0]
call fcn.00404f00
jmp 0x403b25
push str.ipsec64.sys
lea ecx, [ebp - 0x5e0]
call fcn.00404ca0
mov edi, dword [ebp - 0x5e0]
mov byte [ebp - 4], 0x40
call fcn.00409fff
mov ecx, eax
test ecx, ecx
jne 0x403b44
push 0x80004005
call fcn.00401ee0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x5d8], eax
mov eax, str.C:Windowsipsec32.sys
mov byte [ebp - 4], 0x41
test eax, 0xffff0000
jne 0x403b7e
movzx esi, ax
push esi
call fcn.00415062
test eax, eax
je 0x403b8e
push esi
push eax
lea ecx, [ebp - 0x5d8]
call fcn.00404f00
jmp 0x403b8e
push str.C:Windowsipsec32.sys
lea ecx, [ebp - 0x5d8]
call fcn.00404ca0
mov byte [ebp - 4], 0x42
call fcn.00409fff
mov ecx, eax
test ecx, ecx
jne 0x403ba7
push 0x80004005
call fcn.00401ee0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x5e4], esi
mov eax, str.C:Windowsipsec64.sys
mov byte [ebp - 4], 0x43
test eax, 0xffff0000
jne 0x403be9
movzx eax, ax
push eax
call fcn.00415062
test eax, eax
je 0x403bff
mov edx, str.C:Windowsipsec64.sys
movzx ecx, dx
push ecx
push eax
lea ecx, [ebp - 0x5e4]
call fcn.00404f00
jmp 0x403bf9
push str.C:Windowsipsec64.sys
lea ecx, [ebp - 0x5e4]
call fcn.00404ca0
mov esi, dword [ebp - 0x5e4]
push 0x114
lea eax, [ebp - 0x5c8]
mov byte [ebp - 4], 0x44
push 0
push eax
call fcn.0054f420
add esp, 0xc
mov dword [ebp - 0x5c8], 0x114
lea eax, [ebp - 0x5c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x5c4], 0xa
je 0x403df4
cmp dword [0x5db0d8], 0
mov dword [ebp - 0x5cc], 0
je 0x403d31
lea eax, [ebp - 0x5cc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x5db0d8]
cmp dword [ebp - 0x5cc], 0
je 0x403d31
call fcn.00402a00
test edi, edi
jne 0x403c86
mov dword [ebp - 0x5d0], edi
jmp 0x403cdd
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403c90
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x5cc], eax
cmp eax, 0x3fffffff
jle 0x403cbb
mov dword [ebp - 0x5d0], 0
jmp 0x403cdd
add eax, eax
call fcn.0054ccc0
mov edx, dword [ebp - 0x5cc]
mov eax, esp
push 3
lea ecx, [edx + edx]
push ecx
push edi
push eax
call fcn.00404c60
mov dword [ebp - 0x5d0], eax
test esi, esi
jne 0x403ce8
xor eax, eax
jmp 0x403de7
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403cf0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x5cc], eax
cmp eax, 0x3fffffff
jle 0x403d16
xor eax, eax
jmp 0x403de7
add eax, eax
call fcn.0054ccc0
mov edx, dword [ebp - 0x5cc]
mov eax, esp
push 3
lea ecx, [edx + edx]
push ecx
push esi
jmp 0x403de1
call fcn.00402940
test ebx, ebx
jne 0x403d42
mov dword [ebp - 0x5d0], ebx
jmp 0x403d94
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403d47
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x5cc], eax
cmp eax, 0x3fffffff
jle 0x403d72
mov dword [ebp - 0x5d0], 0
jmp 0x403d94
add eax, eax
call fcn.0054ccc0
mov edx, dword [ebp - 0x5cc]
mov eax, esp
push 3
lea ecx, [edx + edx]
push ecx
push ebx
push eax
call fcn.00404c60
mov dword [ebp - 0x5d0], eax
mov eax, dword [ebp - 0x5d8]
test eax, eax
je 0x403de7
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403da3
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x5cc], eax
cmp eax, 0x3fffffff
jle 0x403dc6
xor eax, eax
jmp 0x403de7
add eax, eax
call fcn.0054ccc0
mov edx, dword [ebp - 0x5cc]
mov eax, esp
push 3
lea ecx, [edx + edx]
push ecx
push dword [ebp - 0x5d8]
push eax
call fcn.00404c60
mov ecx, dword [ebp - 0x5d0]
mov edx, eax
call fcn.00402620
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0x42
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403e12
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x40
mov eax, esi
mov edx, dword [ebp - 0x5d8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403e33
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x3e
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x403e4e
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x3b
add ebx, 0xfffffff0
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x403e69
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x13
mov eax, esi
mov edx, dword [ebp - 0x5ec]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403e8a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
mov eax, esi
mov edx, dword [ebp - 0x5f4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403eab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, esi
mov edx, dword [ebp - 0x5f8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403ecc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x5fc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403eed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x5f0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x403f0c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x624]
call fcn.00416a96
lea esp, [ebp - 0x634]
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.0054c0c7
mov esp, ebp
pop ebp
ret