Function at 0x437430
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x470428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x474d94]
and eax, 1
jne 0x437467
mov ecx, dword [0x474d94]
or ecx, 1
mov dword [0x474d94], ecx
call dword [sym.imp.MSVCR100.dll__getpid]
mov dword [0x474d90], eax
push 0x404
push 0
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [ebp + 0x10], 0x42e
jne 0x4374b3
push 0x400
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCR100.dll_strncpy]
add esp, 0xc
mov edx, dword [ebp + 0x14]
push edx
call sub.MSVCR100.dll_strlen
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x400], eax
jmp 0x43777d
cmp dword [0x470058], 0xffffffff
jne 0x4374ec
push 0
call fcn.00437790
add esp, 4
and eax, 0xffff
and edx, 0
push eax
call dword [sym.imp.MSVCR100.dll_srand]
add esp, 4
push 0x40
push 0x474d50
push 0x470058
call fcn.0042d470
add esp, 0xc
cmp dword [0x470054], 0xffffffff
jne 0x437630
call fcn.00445790
mov dword [ebp - 0x118], eax
call fcn.004457d0
mov dword [ebp - 0x10c], eax
push str.WNC_NUM_CPUS
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x437562
lea edx, [ebp - 0x11c]
push edx
push 0x451760
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.MSVCR100.dll_sscanf]
add esp, 0xc
mov ecx, dword [ebp - 0x11c]
cmp ecx, dword [ebp - 0x118]
jle 0x437562
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 0x118], edx
push str.WNC_THIS_CPU
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x43759b
lea eax, [ebp - 0x10c]
push eax
push 0x451774
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.MSVCR100.dll_sscanf]
add esp, 0xc
cmp dword [ebp - 0x118], 2
jge 0x4375b0
mov dword [ebp - 0x118], 0
jmp 0x4375c3
cmp dword [ebp - 0x118], 0x63
jle 0x4375c3
mov dword [ebp - 0x118], 0x63
cmp dword [ebp - 0x10c], 0
jge 0x4375d8
mov dword [ebp - 0x10c], 0
jmp 0x4375eb
cmp dword [ebp - 0x10c], 0x63
jle 0x4375eb
mov dword [ebp - 0x10c], 0x63
mov dword [ebp - 0x110], 1
call fcn.004377b0
test eax, eax
je 0x43760d
mov edx, dword [ebp - 0x110]
or edx, 4
mov dword [ebp - 0x110], edx
mov eax, dword [ebp - 0x10c]
imul eax, eax, 0x2710
mov ecx, dword [ebp - 0x118]
imul ecx, ecx, 0x64
add eax, dword [ebp - 0x110]
add ecx, eax
mov dword [0x470054], ecx
push 0x100
push 0
lea edx, [ebp - 0x108]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x100
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.MSVCR100.dll__getcwd]
add esp, 8
cmp dword [ebp + 8], 0
jg 0x437669
call fcn.0042dab0
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0x12c
jge 0x4376ff
cmp dword [ebp + 8], 0xc8
jge 0x4376b4
push 0x3a
lea ecx, [ebp - 0x108]
push ecx
call fcn.00406fa0
add esp, 8
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x4376a8
mov edx, dword [ebp - 0x124]
mov byte [edx], 0x5c
mov dword [ebp - 0x120], 0x4516f4
jmp 0x4376be
mov dword [ebp - 0x120], str._d_ld_d_d_s_s_d_s
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x108]
push edx
push 0x474d50
mov eax, dword [0x470058]
push eax
mov ecx, dword [0x470054]
push ecx
call fcn.0042d3c0
push eax
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x120]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x28
jmp 0x437755
mov dword [ebp - 0x128], str._3d_ld_d_d_d_s_s_s_d_s
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00429d00
push eax
lea ecx, [ebp - 0x108]
push ecx
push 0x474d50
mov edx, dword [0x470058]
push edx
mov eax, dword [0x474d90]
push eax
mov ecx, dword [0x470054]
push ecx
call fcn.0042d3c0
push eax
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x128]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x30
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCR100.dll_strlen
add esp, 4
add eax, 1
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x400], eax
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0043cec0
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00442e52
mov esp, ebp
pop ebp
ret