Function at 0x10004db5
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005df86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x134
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x50]
test eax, eax
je 0x10005161
mov eax, dword [ebp + 0x4c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x7c], eax
lea eax, [ebp + 0x48]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xe8]
movzx eax, byte [eax]
test eax, eax
je 0x100050ed
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.1000f954
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
dec ecx
mov edx, dword [ebp - 0x28]
mov dword [edx], ecx
test eax, eax
jne 0x10004f6a
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0
jne 0x10004f6a
and dword [ebp - 0x3c], 0
jmp 0x10004f71
mov dword [ebp - 0x3c], 1
mov eax, dword [ebp - 0xf8]
mov dword [eax], 4
mov eax, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.1000f954
mov eax, dword [eax]
mov ecx, dword [ebp - 0x3c]
lea esi, [eax + ecx*4]
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.1000f954
imul esi, dword [eax]
push 0
mov ecx, dword [ebp - 0x20]
call fcn.1000f954
cmp esi, dword [eax]
jl 0x10004fc4
mov dword [ebp - 0x54], 1
jmp 0x10004fc8
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp dword [ebp - 0x54], eax
jg 0x10004fdb
mov dword [ebp - 0x64], 1
jmp 0x10004fdf
and dword [ebp - 0x64], 0
cmp dword [ebp - 0x64], 0xffff
je 0x10004ff1
mov dword [ebp - 0x4c], 1
jmp 0x10004ff5
and dword [ebp - 0x4c], 0
push 2
mov ecx, dword [ebp - 0x14]
call fcn.1000f954
mov ecx, dword [ebp - 0x4c]
cmp ecx, dword [eax]
jge 0x1000500f
mov dword [ebp - 0x5c], 1
jmp 0x10005013
and dword [ebp - 0x5c], 0
push 2
mov ecx, dword [ebp - 0x120]
call fcn.1000f954
mov ecx, dword [ebp - 0x5c]
imul ecx, dword [eax]
mov eax, dword [ebp - 0x40]
mov dword [eax], ecx
mov eax, dword [ebp - 0x40]
mov esi, dword [eax]
push 0
mov ecx, dword [ebp - 0x14]
call fcn.1000f954
cmp esi, dword [eax]
jge 0x10005047
mov dword [ebp - 0x44], 1
jmp 0x1000504b
and dword [ebp - 0x44], 0
cmp dword [ebp - 0x44], 0
je 0x1000505a
mov dword [ebp - 0x48], 1
jmp 0x1000505e
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.1000f954
mov eax, dword [eax]
cmp eax, dword [ebp - 0x48]
jge 0x1000507b
mov dword [ebp - 0x50], 1
jmp 0x1000507f
and dword [ebp - 0x50], 0
push 1
mov ecx, dword [ebp - 0x20]
call fcn.1000f954
mov ecx, dword [ebp - 0x50]
imul ecx, dword [eax]
mov eax, dword [ebp - 0x70]
cmp ecx, dword [eax]
jle 0x1000509f
mov dword [ebp - 0x38], 1
jmp 0x100050a3
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
push 1
mov ecx, dword [ebp - 0x20]
call fcn.1000f954
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [eax]
jg 0x100050c5
mov dword [ebp - 0x58], 1
jmp 0x100050c9
and dword [ebp - 0x58], 0
cmp dword [ebp - 0x58], 0xfffffffb
jne 0x100050d8
mov dword [ebp - 0x60], 1
jmp 0x100050dc
and dword [ebp - 0x60], 0
push 1
mov ecx, dword [ebp - 0x20]
call fcn.1000f954
mov ecx, dword [ebp - 0x60]
mov dword [eax], ecx
jmp 0x1000515c
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xac]
mov eax, dword [eax]
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xb4]
push eax
mov ecx, dword [ebp - 0xbc]
call fcn.1000fa2a
mov ecx, dword [ebp - 0xc4]
mov cl, byte [ecx]
mov byte [eax], cl
jmp 0x10005359
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x104], eax
lea eax, [ebp + 0x24]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0x68], 0x7794
mov dword [ebp - 0x11c], str.sxgdumj_cqvkb_tzflgmr_ekebrp_bttsdnzoq_savceb_swpsui_bkcne_jppl
cmp dword [ebp - 0x68], 0x77a2
jle 0x10005275
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
and dword [ebp - 0x34], 0
jmp 0x100051b6
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x7392
jge 0x10005275
and dword [ebp - 0x30], 0
jmp 0x100051d0
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x1d35
jge 0x10005270
and dword [ebp - 0x24], 0
jmp 0x100051ea
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x7f46
jge 0x1000526b
and dword [ebp - 0x2c], 0
jmp 0x10005200
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x40d6
jge 0x10005266
mov eax, dword [ebp - 0x30]
cdq
idiv dword [ebp - 0x24]
mov eax, edx
cdq
idiv dword [ebp - 0x2c]
and edx, dword [ebp - 0x34]
mov eax, edx
cdq
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], edx
push dword [ebp - 0x124]
push dword [ebp - 0x128]
lea ecx, [ebp - 0x144]
call fcn.10001a9f
pop ecx
pop ecx
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xcc]
call fcn.1000f536
push eax
call fcn.10045b49
pop ecx
lea ecx, [ebp - 0x144]
call fcn.1000f52c
jmp 0x100051f9
jmp 0x100051e3
jmp 0x100051c9
jmp 0x100051af
mov eax, dword [ebp - 0xd4]
movzx eax, byte [eax]
test eax, eax
je 0x100052e7
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0
jmp 0x100052c5
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 3
jge 0x100052e5
mov eax, dword [ebp - 0x1c]
push dword [eax]
mov ecx, dword [ebp - 0xfc]
call fcn.1000f954
mov dword [eax], 0x3fe662db
jmp 0x100052ba
jmp 0x1000531a
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x114]
movzx eax, byte [eax]
test eax, eax
je 0x1000531a
push 0x3b32
push 0
call fcn.1000c087
pop ecx
pop ecx
and dword [ebp - 4], 0
cmp dword [ebp - 0x68], 0x756f
jge 0x10005333
push dword [ebp - 0x11c]
call fcn.10045b49
pop ecx
jmp 0x1000534f
or dword [ebp - 4], 0xffffffff
jmp 0x10005359
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret