Function at 0x10001d4e
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push esi
push edi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x310], 0
mov word [ebp - 0x41c], 0x202
mov dword [ebp - 4], 0
push 0x1000a860
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x1000a848
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 0x314], 0
jmp 0x10001daa
mov eax, dword [ebp - 0x314]
add eax, 1
mov dword [ebp - 0x314], eax
cmp dword [ebp - 0x314], 0xff
jge 0x10001dda
mov ecx, dword [ebp - 0x314]
mov dword [ecx*4 + 0x1000a050], 0
mov edx, dword [ebp - 0x314]
mov dword [edx*4 + 0x1000a44c], 0
jmp 0x10001d9b
push 0x78
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x420], eax
mov eax, dword [ebp - 0x428]
mov ecx, dword [ebp - 0x420]
mov dword [eax], ecx
mov edx, dword [ebp - 0x428]
cmp dword [edx], 0
jne 0x10001e0d
mov eax, 8
jmp 0x100021b0
push 4
push 0
mov eax, dword [ebp - 0x428]
mov ecx, dword [eax]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.MSVCRT.dll_wcstombs]
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne 0x10001e62
mov eax, 0x277b
jmp 0x100021b0
lea eax, [ebp - 0x418]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x424], eax
mov edx, dword [ebp - 0x428]
mov eax, dword [ebp - 0x424]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x428]
cmp dword [ecx + 8], 0
jne 0x10001ea9
mov eax, 8
jmp 0x100021b0
lea edx, [ebp - 0x418]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
lea eax, [ebp - 0x418]
push eax
mov ecx, dword [ebp - 0x428]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.MSVCRT.dll_mbstowcs]
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0x428]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x428]
cmp dword [edx + 4], 0
jne 0x10001eff
mov eax, 0x277a
jmp 0x100021b0
push str.WSPStartup
mov eax, dword [ebp - 0x428]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x310], eax
cmp dword [ebp - 0x310], 0
jne 0x10001f2d
mov eax, 0x277a
jmp 0x100021b0
mov edx, dword [ebp - 0x428]
mov eax, dword [edx]
push eax
sub esp, 0x3c
mov ecx, 0xf
mov esi, 0x1000acd8
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x30c]
push edx
mov ax, word [ebp - 0x41c]
push eax
call dword [ebp - 0x310]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10001f71
mov eax, dword [ebp - 4]
jmp 0x100021b0
mov ecx, dword [ebp - 0x428]
mov edx, dword [ecx]
cmp dword [edx], 0
je 0x10002164
mov eax, dword [ebp - 0x428]
mov ecx, dword [eax]
cmp dword [ecx + 4], 0
je 0x10002164
mov edx, dword [ebp - 0x428]
mov eax, dword [edx]
cmp dword [eax + 8], 0
je 0x10002164
mov ecx, dword [ebp - 0x428]
mov edx, dword [ecx]
cmp dword [edx + 0xc], 0
je 0x10002164
mov eax, dword [ebp - 0x428]
mov ecx, dword [eax]
cmp dword [ecx + 0x10], 0
je 0x10002164
mov edx, dword [ebp - 0x428]
mov eax, dword [edx]
cmp dword [eax + 0x14], 0
je 0x10002164
mov ecx, dword [ebp - 0x428]
mov edx, dword [ecx]
cmp dword [edx + 0x18], 0
je 0x10002164
mov eax, dword [ebp - 0x428]
mov ecx, dword [eax]
cmp dword [ecx + 0x1c], 0
je 0x10002164
mov edx, dword [ebp - 0x428]
mov eax, dword [edx]
cmp dword [eax + 0x20], 0
je 0x10002164
mov ecx, dword [ebp - 0x428]
mov edx, dword [ecx]
cmp dword [edx + 0x24], 0
je 0x10002164
mov eax, dword [ebp - 0x428]
mov ecx, dword [eax]
cmp dword [ecx + 0x28], 0
je 0x10002164
mov edx, dword [ebp - 0x428]
mov eax, dword [edx]
cmp dword [eax + 0x2c], 0
je 0x10002164
mov ecx, dword [ebp - 0x428]
mov edx, dword [ecx]
cmp dword [edx + 0x30], 0
je 0x10002164
mov eax, dword [ebp - 0x428]
mov ecx, dword [eax]
cmp dword [ecx + 0x34], 0
je 0x10002164
mov edx, dword [ebp - 0x428]
mov eax, dword [edx]
cmp dword [eax + 0x38], 0
je 0x10002164
mov ecx, dword [ebp - 0x428]
mov edx, dword [ecx]
cmp dword [edx + 0x3c], 0
je 0x10002164
mov eax, dword [ebp - 0x428]
mov ecx, dword [eax]
cmp dword [ecx + 0x40], 0
je 0x10002164
mov edx, dword [ebp - 0x428]
mov eax, dword [edx]
cmp dword [eax + 0x44], 0
je 0x10002164
mov ecx, dword [ebp - 0x428]
mov edx, dword [ecx]
cmp dword [edx + 0x48], 0
je 0x10002164
mov eax, dword [ebp - 0x428]
mov ecx, dword [eax]
cmp dword [ecx + 0x4c], 0
je 0x10002164
mov edx, dword [ebp - 0x428]
mov eax, dword [edx]
cmp dword [eax + 0x50], 0
je 0x10002164
mov ecx, dword [ebp - 0x428]
mov edx, dword [ecx]
cmp dword [edx + 0x54], 0
je 0x10002164
mov eax, dword [ebp - 0x428]
mov ecx, dword [eax]
cmp dword [ecx + 0x58], 0
je 0x10002164
mov edx, dword [ebp - 0x428]
mov eax, dword [edx]
cmp dword [eax + 0x5c], 0
je 0x10002164
mov ecx, dword [ebp - 0x428]
mov edx, dword [ecx]
cmp dword [edx + 0x60], 0
je 0x10002164
mov eax, dword [ebp - 0x428]
mov ecx, dword [eax]
cmp dword [ecx + 0x64], 0
je 0x10002164
mov edx, dword [ebp - 0x428]
mov eax, dword [edx]
cmp dword [eax + 0x68], 0
je 0x10002164
mov ecx, dword [ebp - 0x428]
mov edx, dword [ecx]
cmp dword [edx + 0x6c], 0
je 0x10002164
mov eax, dword [ebp - 0x428]
mov ecx, dword [eax]
cmp dword [ecx + 0x70], 0
je 0x10002164
mov edx, dword [ebp - 0x428]
mov eax, dword [edx]
cmp dword [eax + 0x74], 0
jne 0x1000216b
mov eax, 0x2778
jmp 0x100021b0
mov ecx, dword [ebp - 0x30c]
and ecx, 0xffff
cmp ecx, 0x202
je 0x100021ae
mov edx, dword [ebp - 0x428]
mov eax, dword [edx]
cmp dword [eax + 0x14], 0
je 0x100021a7
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x428]
mov eax, dword [edx]
call dword [eax + 0x14]
test eax, eax
je 0x100021a7
mov eax, 0x276c
jmp 0x100021b0
mov eax, 0x2779
jmp 0x100021b0
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8