Function at 0x430700
Capabilities:
Resolve function by parsing pe exports
Set environment variable

Disassembly:
push 0xffffffffffffffff
push 0x5e8824
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x168], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x180]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x188], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x3c], esp
mov byte [esp + 0x1a4], 1
push ebx
mov ebp, 7
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
push 0x6190bc
mov word [esi + 4], bx
call fcn.00402770
push 1
lea esi, [esp + 0xbc]
call fcn.0046a790
mov byte [esp + 0x188], 2
push 0x3c
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
lea esi, [esp + 0x6c]
mov dword [esp + 0x84], ebp
mov dword [esp + 0x80], ebx
mov word [esp + 0x70], bx
call fcn.00402770
mov byte [esp + 0x188], 3
cmp dword [esp + 0x7c], 8
mov esi, dword [esp + 0x68]
jae 0x4307c7
lea esi, [esp + 0x68]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4307da
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call edi
cmp eax, ebx
je 0x430863
mov edi, 8
cmp dword [esp + 0x7c], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
jb 0x430817
mov ecx, dword [esp + 0x68]
push ecx
call fcn.0059b877
add esp, 4
lea esi, [esp + 0x9c]
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], bx
call fcn.0046a830
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x430843
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x1a8], edi
jb 0x43085c
mov edx, dword [esp + 0x194]
push edx
call fcn.0059b877
add esp, 4
xor al, al
jmp 0x430e67
cmp dword [esp + 0x1a4], ebx
je 0x430be2
mov eax, dword [esp + 0x194]
mov esi, 8
cmp dword [esp + 0x1a8], esi
jae 0x43088c
lea eax, [esp + 0x194]
lea ecx, [esp + 0x9c]
push ecx
push eax
lea edx, [esp + 0x20]
push edx
call fcn.0043a640
test al, al
jne 0x430907
cmp dword [esp + 0x7c], esi
jb 0x4308b6
mov eax, dword [esp + 0x68]
push eax
call fcn.0059b877
add esp, 4
lea esi, [esp + 0x9c]
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], bx
call fcn.0046a830
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4308e2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x1a8], 8
jb 0x43085c
mov ecx, dword [esp + 0x194]
push ecx
call fcn.0059b877
add esp, 4
xor al, al
jmp 0x430e67
mov dword [esp + 0x98], ebp
mov dword [esp + 0x94], ebx
mov word [esp + 0x84], bx
mov byte [esp + 0x188], 4
mov eax, dword [esp + 0x9c]
cmp eax, 1
jne 0x43094b
lea esi, [esp + 0x48]
lea eax, [esp + 0x9c]
call fcn.0046bd60
mov byte [esp + 0x188], 5
jmp 0x43096c
cmp eax, 2
jne 0x430ba5
lea esi, [esp + 0x48]
lea eax, [esp + 0x9c]
call fcn.0046bd60
mov byte [esp + 0x188], 6
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x88]
call fcn.00402580
lea esi, [esp + 0x48]
mov byte [esp + 0x188], 4
call fcn.00405c10
mov edx, str.Path
lea eax, [esp + 0x48]
call fcn.004024d0
lea eax, [esp + 0x190]
lea esi, [esp + 0x48]
call fcn.0042b240
test eax, eax
sete byte [esp + 0x17]
call fcn.00405c10
cmp byte [esp + 0x17], bl
je 0x430b19
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea edx, [esp + 0x24]
push edx
push 0x20019
push ebx
push str.Environment
push reloc.WS2_32.dll_accept
mov byte [esp + 0x19c], 7
call edi
cmp eax, ebx
jne 0x430b19
sub esp, 0x1c
mov edx, 0x6190bc
mov eax, esp
mov dword [esp + 0x3c], esp
call fcn.004024d0
push 1
lea esi, [esp + 0x12c]
call fcn.0046a790
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
mov byte [esp + 0x188], 9
mov eax, dword [esp + 0x194]
mov edi, 8
cmp dword [esp + 0x1a8], edi
jae 0x430a41
lea eax, [esp + 0x194]
lea ecx, [esp + 0x10c]
push ecx
push eax
lea edx, [esp + 0x2c]
push edx
call fcn.0043a640
test al, al
je 0x430ab8
mov eax, dword [esp + 0x10c]
cmp eax, 1
jne 0x430a7e
lea esi, [esp + 0x2c]
lea eax, [esp + 0x10c]
call fcn.0046bd60
mov byte [esp + 0x188], 0xa
jmp 0x430a9b
cmp eax, 2
jne 0x430ab8
lea esi, [esp + 0x2c]
lea eax, [esp + 0x10c]
call fcn.0046bd60
mov byte [esp + 0x188], 0xb
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x50]
call fcn.00402580
lea esi, [esp + 0x2c]
mov byte [esp + 0x188], 9
call fcn.00405c10
cmp dword [esp + 0x5c], ebx
je 0x430af3
lea eax, [esp + 0x48]
push eax
mov edx, 0x6112ec
call fcn.00402540
push ebx
lea ecx, [esp + 0x84]
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x50]
call fcn.00402990
push 0xffffffffffffffff
push ebx
mov eax, esi
lea ecx, [esp + 0x88]
call fcn.00402580
lea esi, [esp + 0x48]
call fcn.00405c10
lea esi, [esp + 0x10c]
call fcn.0046a830
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x430b1e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x430b1e
mov edi, 8
cmp dword [esp + 0x98], edi
mov ecx, dword [esp + 0x84]
jae 0x430b35
lea ecx, [esp + 0x84]
cmp dword [esp + 0x1a8], edi
mov eax, dword [esp + 0x194]
jae 0x430b4c
lea eax, [esp + 0x194]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp eax, 1
lea esi, [esp + 0x80]
sete byte [esp + 0x17]
call fcn.00405c10
lea esi, [esp + 0x64]
call fcn.00405c10
lea esi, [esp + 0x9c]
call fcn.0046a830
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x430b90
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
lea esi, [esp + 0x190]
call fcn.00405c10
mov al, byte [esp + 0x17]
jmp 0x430e67
lea esi, [esp + 0x80]
call fcn.00405c10
lea esi, [esp + 0x64]
call fcn.00405c10
lea esi, [esp + 0x9c]
call fcn.0046a830
lea esi, [esp + 0x18]
call fcn.0043a3a0
lea esi, [esp + 0x190]
call fcn.00405c10
xor al, al
jmp 0x430e67
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
lea edx, [esp + 0x80]
push edx
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x1c]
mov byte [esp + 0x18c], 0xd
call fcn.0043a750
test al, al
jne 0x430c89
lea esi, [esp + 0x48]
call fcn.00410910
lea esi, [esp + 0x80]
call fcn.00410910
mov edi, 8
cmp dword [esp + 0x7c], edi
jb 0x430c51
mov eax, dword [esp + 0x68]
push eax
call fcn.0059b877
add esp, 4
lea esi, [esp + 0x9c]
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], bx
call fcn.0046a830
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x430c7d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x1a8], edi
jmp 0x4308ea
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
xor ebp, ebp
mov dword [esp + 0x20], ebx
cmp esi, ebx
je 0x430db7
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jae 0x430d9a
mov edx, dword [esp + 0x20]
cmp dword [esi + edx + 0x14], ebx
je 0x430d28
cmp esi, ebx
je 0x430ce5
sub edi, esi
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x430cee
call fcn.005b8b18
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x20]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0xffffffffffffffff
mov edi, 7
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
add eax, esi
push ebx
mov word [ecx + 4], bx
call fcn.00402580
call fcn.00430700
add esp, 0x1c
cmp al, bl
je 0x430d35
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
add ebp, 1
add dword [esp + 0x20], 0x1c
jmp 0x430c97
lea esi, [esp + 0x48]
call fcn.00410910
lea esi, [esp + 0x80]
call fcn.00410910
mov ebp, 8
cmp dword [esp + 0x7c], ebp
jb 0x430d62
mov ecx, dword [esp + 0x68]
push ecx
call fcn.0059b877
add esp, 4
lea esi, [esp + 0x9c]
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], bx
call fcn.0046a830
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x430d8e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x1a8], ebp
jmp 0x43084a
cmp esi, ebx
je 0x430db7
mov eax, dword [esp + 0x24]
push eax
mov eax, esi
call fcn.00412b40
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0059b877
add esp, 8
mov eax, dword [esp + 0x84]
cmp eax, ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
je 0x430def
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x88]
push edx
call fcn.00412b40
mov eax, dword [esp + 0x88]
push eax
call fcn.0059b877
add esp, 8
mov edi, 8
cmp dword [esp + 0x7c], edi
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
jb 0x430e1c
mov ecx, dword [esp + 0x68]
push ecx
call fcn.0059b877
add esp, 4
lea esi, [esp + 0x9c]
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], bx
call fcn.0046a830
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x430e4c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x1a8], edi
jb 0x430e65
mov edx, dword [esp + 0x194]
push edx
call fcn.0059b877
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x180]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.005b88a9
add esp, 0x178
ret