Function at 0x436340
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 0x20]
mov ebx, ecx
push edi
push eax
mov dword [ebp - 4], ebx
call fcn.00413ac0
mov ecx, eax
call fcn.00413b70
cmp dword [eax + 0x14], 8
jb 0x436366
mov eax, dword [eax]
push eax
add ebx, 0x1628
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp - 0xc], 8
jb 0x436385
push dword [ebp - 0x20]
call fcn.0047a557
add esp, 4
call fcn.004097b0
mov edx, eax
mov esi, eax
mov edi, edi
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x436390
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4363a0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 4]
push 0x400
lea eax, [edi + 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
add edi, 0x1218
call fcn.00409860
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20]
push eax
call fcn.00413ac0
mov ecx, eax
call fcn.00413b70
mov edx, eax
cmp dword [edx + 0x14], 8
jb 0x4363fb
mov edx, dword [edx]
mov esi, edx
lea ecx, [ecx]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x436400
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x436410
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
cmp dword [ebp - 0xc], 8
rep movsb byte es:[edi], byte [esi]
jb 0x43643b
push dword [ebp - 0x20]
call fcn.0047a557
add esp, 4
mov eax, dword [ebp - 4]
push 0x104
lea esi, [eax + 0x1010]
push esi
lea edi, [eax + 0x1218]
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x436462
mov eax, dword [0x4d9704]
mov ecx, ebx
mov dword [edi], eax
xor edi, edi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x436480
sub ecx, edx
sar ecx, 1
je 0x4364c3
mov esi, ebx
movzx eax, word [esi]
push eax
call fcn.0047f044
mov word [esi], ax
lea esi, [esi + 2]
mov eax, ebx
add esp, 4
inc edi
lea edx, [eax + 2]
jmp 0x4364b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4364b0
sub eax, edx
sar eax, 1
cmp edi, eax
jb 0x436493
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4364c5
mov edx, dword [ebp - 4]
sub ebx, esi
add edx, 0x1218
lea edi, [edx - 2]
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4364e0
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [ebp - 4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push edx
lea edi, [ebx + 0x1420]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.004097e0
mov edx, eax
mov esi, eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x436514
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x436524
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx + 0x1830]
call fcn.00409810
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20]
push eax
call fcn.00413ac0
mov ecx, eax
call fcn.00413b70
mov edx, eax
cmp dword [edx + 0x14], 8
jb 0x43656b
mov edx, dword [edx]
mov esi, edx
lea ecx, [ecx]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x436570
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x436580
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
cmp dword [ebp - 0xc], 8
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
jb 0x4365ae
push dword [ebp - 0x20]
call fcn.0047a557
add esp, 4
mov esp, ebp
pop ebp
ret