Function at 0x407a2c
Capabilities:
Check http status code
Get session user name
Impersonate user
Initialize winhttp library
Prepare http request
Read file on windows
Read http header
Receive http response
Resolve function by parsing pe exports
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x3c4c
call fcn.0042399d
mov eax, dword [0x42e05c]
xor eax, esp
mov dword [esp + 0x3c48], eax
mov eax, dword [ebp + 0x18]
xorps xmm0, xmm0
or dword [esp], 0xffffffff
push ebx
mov dword [esp + 0x18], eax
xor eax, eax
mov ebx, eax
mov dword [esp + 0x14], eax
push esi
mov byte [esp + 0x13], al
mov byte [esp + 0x40], al
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
inc eax
push edi
mov edi, dword [ebp + 0x20]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x10], ebx
movlpd qword [esp + 0x48], xmm0
mov dword [esp + 0x80], 0x100
movlpd qword [esp + 0xac], xmm0
movlpd qword [esp + 0xb4], xmm0
movlpd qword [esp + 0xbc], xmm0
mov dword [esp + 0xa4], 0x20
mov dword [esp + 0xa8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x42f308]
lea edx, [esp + 0x1c]
push edx
mov dword [0x42f30c], eax
push str.system:write
mov eax, dword [ecx]
push ecx
call dword [eax + 0x20]
mov esi, eax
test esi, esi
js 0x407b4e
push 0x25f0
lea eax, [esp + 0x10c]
push ebx
push eax
call fcn.00412599
mov ebx, dword [esp + 0x40]
lea ecx, [esp + 0x10c]
add esp, 0xc
mov dword [esp + 0x100], 0x25f8
mov dword [esp + 0x104], 0x4000000
mov eax, dword [ebx]
push ecx
push edi
push 0
push ebx
call dword [eax + 0x1c]
mov esi, eax
test esi, esi
js 0x407b4a
mov eax, dword [ebx]
push ebx
call dword [eax + 0x18]
test eax, eax
je 0x407bee
mov esi, 0x80004004
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x34]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x64]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x407b72
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test ebx, ebx
je 0x407b7d
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x407b8c
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x407b9b
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp edi, 0xffffffff
je 0x407ba7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x17], 0
je 0x4086b2
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x4086b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
mov edx, 0xc0000015
or esi, 0x80070000
test eax, eax
push ecx
cmovle esi, eax
push ebx
push ebx
mov ecx, esi
call fcn.00402258
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [esp + 0x38]
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov edi, eax
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x26fc]
mov dword [esp + 0x80], edi
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [esp + 0x26f8]
mov dword [esp + 0xac], eax
lea eax, [esp + 0xa4]
push eax
push dword [esp + 0x3c]
call dword [sym.imp.USERENV.dll_LoadUserProfileA]
mov ecx, dword [esp + 0x44]
test eax, eax
push 1
pop eax
push dword [esp + 0x38]
movzx ecx, cl
cmovne ecx, eax
push 0
mov dword [esp + 0x4c], ecx
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x407c76
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x407b4a
xor ecx, ecx
inc ecx
mov byte [esp + 0x17], cl
cmp edi, 2
je 0x4083b4
cmp edi, 3
je 0x4083b4
cmp edi, 4
jne 0x4083aa
push 0x3c
pop edi
xor ebx, ebx
mov dword [esp + 0x2c], 0x824
push edi
lea eax, [esp + 0xc8]
mov byte [esp + 0x1a], bl
push ebx
push eax
call fcn.00412599
add esp, 0xc
mov dword [esp + 0xc4], edi
lea eax, [esp + 0x27f8]
mov edi, 0x80000000
mov dword [esp + 0xd4], eax
mov ecx, 0x104
lea eax, [esp + 0x2a00]
mov dword [esp + 0xd8], ecx
mov dword [esp + 0xf0], eax
lea eax, [esp + 0xc4]
push eax
push edi
push ebx
lea eax, [esp + 0x16bc]
mov dword [esp + 0x100], ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x407d2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x407b4e
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x2c0c]
push eax
push edi
lea eax, [esp + 0xd0]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCreateUrl]
test eax, eax
jne 0x407d6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x407b4e
push ebx
push ebx
push ebx
push ebx
push 0x42a80c
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [esp + 0x28], edi
test edi, edi
jne 0x407d9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x407b4e
mov byte [esp + 0x15], bl
and dword [esp + 0x78], 0
and dword [esp + 0x3c], 0
mov dword [esp + 0x84], 4
test ebx, ebx
je 0x407dc3
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x407dd2
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push 0
push 0
lea eax, [esp + 0x2800]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
mov dword [esp + 0x40], edi
test edi, edi
jne 0x407e0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x407b4e
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [esp + 0x2a10]
push eax
push 0x42aadc
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x407e4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x407b4e
xor ecx, ecx
mov ebx, ecx
xor eax, eax
mov dword [esp + 0x90], 3
lea edi, [esp + 0x54]
mov dword [esp + 0x94], ecx
stosd dword es:[edi], eax
xor edx, edx
inc edx
mov dword [esp + 0x98], ecx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x9c], ecx
stosd dword es:[edi], eax
mov dword [esp + 0xa0], edx
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x60]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, ebx
mov edi, ecx
sub eax, ecx
je 0x407f2d
sub eax, edx
je 0x407eb6
sub eax, edx
jne 0x407f9c
mov dword [esp + 0x54], edx
mov edi, edx
jmp 0x407f89
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x407f9c
cmp dword [esp + 0x68], 0
je 0x407f9c
push 0x208
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x208
push 0
mov dword [esp + 0x60], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x5c], eax
test ecx, ecx
je 0x407f9c
test eax, eax
je 0x407f9c
push 0xffffffffffffffff
push dword [esp + 0x6c]
mov dword [esp + 0x5c], 3
push 0x104
push ecx
call fcn.00414840
add esp, 0x10
xor eax, eax
lea edi, [eax + 1]
jmp 0x407f89
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x407f9c
cmp dword [esp + 0x60], 0
je 0x407f9c
mov eax, dword [esp + 0x64]
test eax, eax
je 0x407f5a
or dword [esp + 0x8c], 2
mov dword [esp + 0x94], eax
xor eax, eax
inc eax
mov dword [esp + 0xa0], eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x2c10]
push eax
push dword [esp + 0x34]
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
mov edi, eax
test edi, edi
je 0x407f9c
push 0xc
lea eax, [esp + 0x58]
push eax
push 0x26
push dword [esp + 0x34]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp dword [esp + 0x64], 0
je 0x407fb2
push dword [esp + 0x64]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [esp + 0x64], 0
cmp dword [esp + 0x68], 0
je 0x407fc8
push dword [esp + 0x68]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [esp + 0x68], 0
cmp dword [esp + 0x6c], 0
je 0x407fde
push dword [esp + 0x6c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [esp + 0x6c], 0
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x407ff5
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor ecx, ecx
mov dword [esp + 0x58], ecx
jmp 0x407ff7
xor ecx, ecx
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x40800c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor ecx, ecx
mov dword [esp + 0x5c], ecx
test edi, edi
je 0x408026
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [esp + 0x28]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x40809f
xor ecx, ecx
inc ebx
cmp ebx, 3
jb 0x407e4f
mov al, byte [esp + 0x16]
test al, al
jne 0x408040
test esi, esi
js 0x407b4a
mov ebx, dword [esp + 0x10]
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x408059
test esi, esi
js 0x407b4e
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x80]
push eax
push 0
push 0x20000013
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x4080a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
mov edi, 0x80070000
or esi, edi
test eax, eax
cmovle esi, eax
test esi, esi
js 0x407b4e
jmp 0x4080ad
xor eax, eax
inc eax
mov byte [esp + 0x16], al
jmp 0x408034
mov edi, 0x80070000
mov eax, dword [esp + 0x78]
cmp eax, 0x194
ja 0x4081a8
je 0x408207
cmp eax, 0xc8
je 0x4081a0
cmp eax, 0x12c
jbe 0x4081fd
cmp eax, 0x12f
ja 0x4081e5
and dword [esp + 0x3c], 0
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x824
push eax
lea eax, [esp + 0x2c10]
push eax
push 0
push 0x33
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x408129
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, edi
test eax, eax
cmovle esi, eax
test esi, esi
js 0x407b4e
lea eax, [esp + 0xc4]
push eax
push 0
push 0
lea eax, [esp + 0x2c14]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x40815f
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, edi
test eax, eax
cmovle esi, eax
test esi, esi
js 0x407b4e
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x2c0c]
push eax
push 0x80000000
lea eax, [esp + 0xd0]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCreateUrl]
test eax, eax
jne 0x40819b
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, edi
test eax, eax
cmovle esi, eax
test esi, esi
js 0x407b4e
xor eax, eax
inc eax
jmp 0x4081a2
xor al, al
mov byte [esp + 0x15], al
jmp 0x4081d4
cmp eax, 0x198
je 0x4081cb
cmp eax, 0x1f4
je 0x408207
cmp eax, 0x1f5
jbe 0x4081fd
cmp eax, 0x1f7
jbe 0x408207
cmp eax, 0x1f8
jne 0x4081fd
mov al, byte [esp + 0x15]
mov esi, 0x80070102
test esi, esi
jne 0x408211
test al, al
je 0x408217
mov edi, dword [esp + 0x28]
jmp 0x407da3
cmp eax, 0x191
je 0x4081f3
cmp eax, 0x193
jne 0x4081fd
mov esi, 0x80070005
jmp 0x407b4e
mov esi, 0x8000ffff
jmp 0x407b4e
mov esi, 0x80070002
jmp 0x407b4e
js 0x407b4e
lea edx, [esp + 0x70]
mov ecx, ebx
call fcn.00410282
mov esi, eax
test esi, esi
js 0x407b4e
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x408266
mov eax, dword [esp + 0x74]
cmp eax, dword [ecx + 4]
jb 0x408374
jne 0x40824e
mov eax, dword [esp + 0x70]
cmp eax, dword [ecx]
jbe 0x408374
mov ecx, dword [esp + 0x34]
xor edx, edx
push edx
push edx
push edx
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x50]
xorps xmm0, xmm0
movlpd qword [ebp + 8], xmm0
xor esi, esi
mov dword [esp + 0x18], 4
push esi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x90]
push eax
push esi
push 0x20000005
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x4082a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, edi
test eax, eax
cmovle esi, eax
test esi, esi
js 0x407b4e
mov eax, dword [esp + 0x88]
and dword [esp + 0x4c], 0
mov dword [esp + 0x48], eax
test esi, esi
js 0x407b4e
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x1c]
xor eax, eax
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x408304
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x70]
push edx
push dword [ebp + 0xc]
mov ecx, dword [ecx + eax*4]
push edi
push dword [esp + 0x58]
push dword [esp + 0x58]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x24]
mov esi, eax
test esi, esi
js 0x407b4a
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, ebx
jb 0x4082cf
cmp dword [esp + 0x48], 0
jne 0x408501
cmp dword [esp + 0x4c], 0
jne 0x408501
xor edi, edi
test ebx, ebx
je 0x4086a2
push 0
push 0
push ecx
xor eax, eax
push ecx
mov ecx, dword [esp + 0x2c]
inc eax
push eax
mov eax, dword [esp + 0x34]
mov edx, dword [eax + edi*4]
call fcn.0040d606
mov esi, eax
test esi, esi
js 0x407b4a
mov eax, dword [esp + 0x20]
push 0
push 0
push ecx
mov edx, dword [eax + edi*4]
push ecx
mov ecx, dword [esp + 0x2c]
push 2
call fcn.0040d606
mov esi, eax
test esi, esi
js 0x407b4a
inc edi
cmp edi, ebx
jb 0x408324
jmp 0x4086a2
xor edi, edi
cmp dword [ebp + 0x1c], edi
jbe 0x4083a3
mov eax, dword [esp + 0x20]
push 0
push 0
push ecx
mov edx, dword [eax + edi*4]
push ecx
mov ecx, dword [esp + 0x2c]
push 3
call fcn.0040d606
mov esi, eax
test esi, esi
js 0x407b4e
inc edi
cmp edi, dword [ebp + 0x1c]
jb 0x40837b
xor esi, esi
jmp 0x407b4e
mov esi, 0x8007000f
jmp 0x407b4a
mov eax, 0x8000080
cmp edi, 2
jne 0x4083c7
cmp dword [0x42f31c], 0
je 0x4083d5
cmp edi, 3
jne 0x4083da
cmp dword [0x42f324], 0
jne 0x4083da
mov eax, 0x28000080
push 0
push eax
push 3
push 0
push ecx
push 0x80000000
lea eax, [esp + 0x16c8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0xc], edi
cmp edi, 0xffffffff
jne 0x40841c
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x4086a9
lea edx, [esp + 0x70]
mov ecx, edi
call fcn.0040f1dd
mov esi, eax
test esi, esi
js 0x4086a9
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x408463
mov eax, dword [esp + 0x74]
cmp eax, dword [ecx + 4]
jb 0x4084c9
jne 0x40844f
mov eax, dword [esp + 0x70]
cmp eax, dword [ecx]
jbe 0x4084c9
mov eax, dword [ebx]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
call dword [eax + 0x50]
xorps xmm0, xmm0
movlpd qword [ebp + 8], xmm0
lea edx, [esp + 0x48]
mov ecx, edi
call fcn.0040dfcf
mov esi, eax
test esi, esi
js 0x4086a9
mov eax, dword [ebp + 0xc]
test eax, eax
jl 0x4082bf
mov edi, dword [ebp + 8]
jg 0x408490
test edi, edi
je 0x4082c2
push 0
push 0
push eax
push edi
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x4082c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x407b4a
jmp 0x4082c2
xor edi, edi
cmp dword [ebp + 0x1c], edi
jbe 0x4084f8
mov eax, dword [esp + 0x20]
push 0
push 0
push ecx
mov edx, dword [eax + edi*4]
push ecx
mov ecx, dword [esp + 0x2c]
push 3
call fcn.0040d606
mov esi, eax
test esi, esi
js 0x407b4a
inc edi
cmp edi, dword [ebp + 0x1c]
jb 0x4084d0
xor esi, esi
mov ebx, esi
jmp 0x407b4e
mov eax, dword [esp + 0x7c]
dec eax
sub eax, 1
je 0x40852c
sub eax, 1
je 0x408524
sub eax, 1
je 0x40851c
mov edi, 0x10000
jmp 0x408542
mov edi, dword [0x42f330]
jmp 0x408532
mov edi, dword [0x42f328]
jmp 0x408532
mov edi, dword [0x42f320]
mov ecx, dword [0x42f314]
dec edi
add edi, ecx
lea eax, [ecx - 1]
not eax
and edi, eax
push 4
push 0x3000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x40866b
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x407b4a
jmp 0x40866b
mov ecx, dword [esp + 0x34]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x18]
test eax, eax
jne 0x408675
mov eax, dword [esp + 0x7c]
cmp eax, 2
je 0x4085b5
cmp eax, 3
je 0x4085b5
lea eax, [esp + 0x30]
push eax
push edi
push dword [esp + 0x2c]
push dword [esp + 0x1c]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
jmp 0x4085cb
push 0
lea eax, [esp + 0x34]
push eax
push edi
push dword [esp + 0x30]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4085eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x407b4a
mov ecx, dword [esp + 0x30]
xor eax, eax
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x408633
test ebx, ebx
je 0x40866b
push ecx
push dword [esp + 0x28]
push ecx
push ecx
mov ecx, dword [esp + 0x30]
push 1
mov edx, dword [ecx + eax*4]
mov ecx, dword [esp + 0x30]
call fcn.0040d606
mov esi, eax
test esi, esi
js 0x407b4a
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, ebx
jae 0x40866b
mov ecx, dword [esp + 0x30]
jmp 0x4085fd
test ebx, ebx
je 0x408666
push 0
push 0
push ecx
push ecx
mov ecx, dword [esp + 0x30]
push 2
mov edx, dword [ecx + eax*4]
mov ecx, dword [esp + 0x30]
call fcn.0040d606
mov esi, eax
test esi, esi
js 0x407b4a
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, ebx
jb 0x408637
xor eax, eax
lea esi, [eax + 1]
test esi, esi
je 0x40857f
jmp 0x4086a2
xor edi, edi
test ebx, ebx
je 0x4086a2
mov eax, dword [esp + 0x20]
push 0
push 0
push ecx
mov edx, dword [eax + edi*4]
push ecx
mov ecx, dword [esp + 0x2c]
push 4
call fcn.0040d606
mov esi, eax
test esi, esi
js 0x407b4a
inc edi
cmp edi, ebx
jb 0x40867b
xor esi, esi
jmp 0x407b4a
mov ebx, dword [esp + 0x10]
jmp 0x407b52
cmp byte [esp + 0x44], 0
je 0x4086ca
push dword [esp + 0xc0]
push dword [esp + 0x3c]
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4086d8
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x3c54]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00411433
mov esp, ebp
pop ebp
ret 0x1c