Function at 0x428890
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0x17], 0
push esi
push edi
jne 0x4288ae
mov ebx, dword [ebx + 0xc]
mov dword [ebp + 8], ebx
push 0xfd
xor esi, esi
lea eax, [esp + 0x5d]
push esi
push eax
mov byte [esp + 0x64], 0
call fcn.004812e0
lea ecx, [esp + 0x64]
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x44], 0x4a2ba4
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], 0x1000000
mov edi, dword [esp + 0x1c]
xor edx, edx
cmp dword [esp + 0x24], edx
je 0x428c06
mov al, byte [ebx + 0x17]
mov esi, edi
mov dword [esp + 0x18], esi
test al, al
jne 0x428936
mov ecx, dword [ebx + 0xc]
push 1
push edx
push edi
push edx
call fcn.004668b0
cmp eax, 1
jne 0x428f4a
push eax
mov ecx, ebx
call fcn.00401230
mov esi, eax
mov dword [esp + 0x18], esi
jmp 0x428c0a
mov byte [esp + 0x17], 1
mov cl, 1
cmp edi, 0xffffffff
jne 0x42894c
xor cl, cl
mov dword [esp + 0x18], edx
mov esi, edx
jmp 0x428950
mov byte [esp + 0x17], dl
lea edi, [esi + 1]
cmp al, 2
jne 0x42897d
cmp byte [esp + 0x17], dl
je 0x42896b
push 0x49588a
mov eax, esi
call fcn.00403b60
jmp 0x42891a
mov esi, 0x4a2bfc
call fcn.00403be0
neg eax
sbb eax, eax
neg eax
jmp 0x42891a
mov esi, dword [0x49d330]
cmp edi, esi
jbe 0x4289a0
push 0x49588a
push str.Memory_limit_reached__see_MaxMem_in_the_help_file_.__The_current_thread_will_exit.
mov ecx, 0x4a2c18
call fcn.00429900
jmp 0x42891a
cmp edi, 2
jae 0x4289ce
xor edx, edx
test cl, cl
setne dl
xor al, al
mov ecx, ebx
add edx, 3
mov edi, edx
call fcn.00466d70
push 1
mov ecx, ebx
call fcn.00401230
mov esi, eax
mov dword [esp + 0x18], esi
jmp 0x428c0a
mov al, byte [ebx + 0x15]
test al, 2
je 0x4289ea
and al, 0x3d
mov byte [ebx + 0x15], al
mov eax, dword [ebx]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [0x49d330]
mov edx, dword [ebx + 0x10]
and byte [ebx + 0x15], 0x86
cmp edi, edx
jbe 0x428a18
mov cl, byte [ebx + 0x14]
cmp cl, 1
jbe 0x428a64
cmp cl, 2
je 0x428aa3
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
and byte [ebx + 0x15], 0x7f
mov dword [ebx + 8], ecx
mov dword [ebx + 0x10], edi
cmp byte [esp + 0x17], 0
je 0x428be8
mov eax, dword [ebx + 8]
cmp eax, 0x49588a
je 0x428a40
mov edx, dword [esp + 0x18]
push edx
push 0x49588a
push eax
call 0x4777f0
add esp, 0xc
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x18]
mov byte [ecx + eax], 0
mov eax, ecx
push 1
mov ecx, ebx
mov dword [ebx + 0xc], eax
call fcn.00401230
mov esi, eax
mov dword [esp + 0x18], esi
jmp 0x428c0a
cmp edi, 0x40
ja 0x428aa3
cmp edi, 4
ja 0x428a75
mov edi, 4
jmp 0x428a83
mov eax, 8
cmp eax, edi
sbb edi, edi
and edi, 0x38
add edi, eax
mov eax, edi
mov dword [esp + 0x10], edi
call fcn.00461610
mov dword [esp + 0x34], eax
test eax, eax
je 0x428f4a
mov byte [ebx + 0x14], 1
jmp 0x428a0a
cmp edi, 0x10
jae 0x428ab2
mov edi, 0x10
jmp 0x428b62
cmp edi, 0x104
jae 0x428ac4
mov edi, 0x104
jmp 0x428b62
cmp edi, 0x28000
jae 0x428b08
mov dword [esp + 0x28], edi
fild dword [esp + 0x28]
test edi, edi
jns 0x428ade
fadd qword [0x497ba0]
fmul qword [0x497bb0]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
or eax, 0xc00
mov dword [esp + 0x28], eax
fldcw word [esp + 0x28]
fistp qword [esp + 0x28]
mov edi, dword [esp + 0x28]
fldcw word [esp + 0x10]
jmp 0x428b62
cmp edi, 0x190000
jae 0x428b18
add edi, 0x4000
jmp 0x428b62
cmp edi, 0x640000
jae 0x428b5c
mov dword [esp + 0x28], edi
fild dword [esp + 0x28]
test edi, edi
jns 0x428b32
fadd qword [0x497ba0]
fmul qword [0x497ba8]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
or eax, 0xc00
mov dword [esp + 0x28], eax
fldcw word [esp + 0x28]
fistp qword [esp + 0x28]
mov edi, dword [esp + 0x28]
fldcw word [esp + 0x10]
jmp 0x428b62
add edi, 0x10000
mov dword [esp + 0x10], edi
cmp edi, esi
jbe 0x428b6e
mov dword [esp + 0x10], esi
cmp cl, 2
jne 0x428bb2
test edx, edx
je 0x428bb2
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
mov bl, 1
call 0x4785bf
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, 0x7fffffff
ja 0x428bb6
push eax
call 0x476de3
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
je 0x428bb6
mov eax, dword [ebp + 8]
mov byte [eax + 0x14], 2
mov ebx, eax
jmp 0x428a06
xor bl, bl
jmp 0x428b88
test bl, bl
je 0x428bcc
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 8], 0x4a2ba4
mov dword [eax + 0xc], ecx
push 0x49588a
push str.Out_of_memory.__The_current_thread_will_exit.
mov ecx, 0x4a2c18
call fcn.00429900
mov ebx, dword [ebp + 8]
jmp 0x42891a
mov edx, dword [ebx + 8]
mov eax, dword [esp + 0x18]
mov byte [edx], 0
push 1
mov ecx, ebx
mov dword [ebx + 0xc], eax
call fcn.00401230
mov esi, eax
mov dword [esp + 0x18], esi
jmp 0x428c0a
mov dword [esp + 0x1c], edx
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx]
mov al, byte [ecx]
test al, al
je 0x428f14
mov dl, byte [0x49d352]
cmp al, dl
je 0x428c4d
cmp al, byte [0x49d351]
je 0x428c4a
cmp dword [esp + 0x24], 0
je 0x428c40
mov ebx, dword [ebp + 8]
mov byte [esi], al
inc esi
mov dword [esp + 0x18], esi
inc ecx
jmp 0x428c10
inc dword [esp + 0x1c]
mov ebx, dword [ebp + 8]
inc ecx
jmp 0x428c10
mov ebx, dword [ebp + 8]
mov al, byte [ecx]
test al, al
je 0x428f14
cmp al, dl
jne 0x428d2b
cmp dword [esp + 0x24], 0
je 0x428d19
mov al, byte [ecx + 1]
movsx edx, al
add edx, 0xffffff9f
cmp edx, 0x15
ja case.0x428c83.99
movzx edx, byte [edx + 0x428fdc]
jmp dword [edx*4 + 0x428fbc]
mov ebx, dword [ebp + 8]
mov byte [esi], 7
inc esi
inc ecx
mov dword [esp + 0x18], esi
inc ecx
jmp 0x428c10
mov ebx, dword [ebp + 8]
mov byte [esi], 8
inc esi
inc ecx
mov dword [esp + 0x18], esi
inc ecx
jmp 0x428c10
mov ebx, dword [ebp + 8]
mov byte [esi], 0xc
inc esi
inc ecx
mov dword [esp + 0x18], esi
inc ecx
jmp 0x428c10
mov ebx, dword [ebp + 8]
mov byte [esi], 0xa
inc esi
inc ecx
mov dword [esp + 0x18], esi
inc ecx
jmp 0x428c10
mov ebx, dword [ebp + 8]
mov byte [esi], 0xd
inc esi
inc ecx
mov dword [esp + 0x18], esi
inc ecx
jmp 0x428c10
mov ebx, dword [ebp + 8]
mov byte [esi], 9
inc esi
inc ecx
mov dword [esp + 0x18], esi
inc ecx
jmp 0x428c10
mov ebx, dword [ebp + 8]
mov byte [esi], 0xb
inc esi
inc ecx
mov dword [esp + 0x18], esi
inc ecx
jmp 0x428c10
mov ebx, dword [ebp + 8]
mov byte [esi], al
inc esi
inc ecx
mov dword [esp + 0x18], esi
inc ecx
jmp 0x428c10
inc dword [esp + 0x1c]
mov ebx, dword [ebp + 8]
mov esi, dword [esp + 0x18]
inc ecx
inc ecx
jmp 0x428c10
lea esi, [ecx + 1]
mov ebx, esi
mov al, byte [ebx]
test al, al
je 0x428f07
lea ebx, [ebx]
cmp al, byte [0x49d351]
je 0x428d5d
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0x428d40
mov ebx, dword [ebp + 8]
mov esi, dword [esp + 0x18]
inc ecx
jmp 0x428c10
cmp byte [ebx], 0
je 0x428f07
mov edi, ebx
sub edi, ecx
dec edi
je 0x428f05
cmp edi, 0xfd
ja 0x428f05
push edi
lea eax, [esp + 0x5c]
push esi
push eax
call fcn.0047a8e0
add esp, 0xc
mov byte [esp + edi + 0x58], 0
cmp byte [esp + 0x58], 0
je 0x428ddb
lea ecx, [esp + 0x23]
push ecx
push 0
push 3
lea edx, [esp + 0x44]
push edx
push edi
lea eax, [esp + 0x6c]
push eax
mov ecx, 0x4a2c18
call fcn.0041d790
test eax, eax
jne 0x428dd5
movzx ecx, byte [esp + 0x23]
mov edx, dword [esp + 0x38]
push ecx
push edx
push edi
lea eax, [esp + 0x64]
push eax
mov ecx, 0x4a2c18
call fcn.0041db10
mov esi, eax
test esi, esi
jne 0x428de1
lea esi, [esp + 0x3c]
jmp 0x428dea
cmp byte [esi + 0x17], 0
jne 0x428dea
mov esi, dword [esi + 0xc]
cmp esi, dword [ebp + 8]
je 0x428f05
cmp dword [esp + 0x24], 0
je 0x428e19
mov edi, dword [esp + 0x18]
push edi
mov ecx, esi
call fcn.00466bf0
add edi, eax
mov ecx, ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0x18], edi
inc ecx
mov esi, edi
jmp 0x428c10
movzx eax, byte [esi + 0x17]
cmp eax, 3
ja case.default.0x428e26
jmp dword [eax*4 + 0x428ff4]
mov eax, esi
call fcn.00401150
cmp dword [0x4a0b8c], 0
jne 0x428e91
cmp dword [esi + 0xc], 0
jne 0x428e91
mov edx, dword [esi + 0x18]
push 0
lea ecx, [esp + 0x37]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x428e76
mov esi, dword [esp + 0x18]
dec eax
add dword [esp + 0x1c], eax
mov ecx, ebx
mov ebx, dword [ebp + 8]
mov dword [0x4a3b6c], 0
inc ecx
jmp 0x428c10
mov dword [0x4a3b6c], esi
mov esi, dword [esp + 0x18]
xor eax, eax
add dword [esp + 0x1c], eax
mov ecx, ebx
mov ebx, dword [ebp + 8]
inc ecx
jmp 0x428c10
mov eax, dword [esi + 0xc]
add dword [esp + 0x1c], eax
mov esi, dword [esp + 0x18]
mov ecx, ebx
mov ebx, dword [ebp + 8]
inc ecx
jmp 0x428c10
mov ecx, dword [esi + 0xc]
push 0
call fcn.00466bf0
add dword [esp + 0x1c], eax
mov esi, dword [esp + 0x18]
mov ecx, ebx
mov ebx, dword [ebp + 8]
inc ecx
jmp 0x428c10
push 0
mov ecx, 0x4a2bfc
call fcn.004039a0
cmp eax, 0xffffffff
jne 0x428f01
mov esi, dword [esp + 0x18]
xor eax, eax
add dword [esp + 0x1c], eax
mov ecx, ebx
mov ebx, dword [ebp + 8]
inc ecx
jmp 0x428c10
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x10]
push eax
push 0
call ecx
add esp, 8
add dword [esp + 0x1c], eax
mov ecx, ebx
mov ebx, dword [ebp + 8]
mov esi, dword [esp + 0x18]
inc ecx
jmp 0x428c10
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
cmp eax, 2
jl 0x4288f0
push 1
mov ecx, ebx
mov byte [esi], 0
call fcn.00401230
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428f35
sub eax, edx
mov edi, eax
cmp byte [ebx + 0x17], cl
jne 0x428f55
mov esi, dword [ebx + 0xc]
jmp 0x428f57
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, ebx
cmp byte [esi + 0x17], 1
jne 0x428f6f
test byte [esi + 0x15], 8
je 0x428f6a
mov eax, esi
call fcn.00401150
lea eax, [esi + 0xc]
jmp 0x428f74
mov eax, 0x4a3324
mov dword [eax], edi
cmp byte [ebx + 0x17], 0
jne 0x428f81
mov eax, dword [ebx + 0xc]
jmp 0x428f83
mov eax, ebx
cmp byte [eax + 0x17], 2
jne 0x428fa7
cmp dword [0x4a2c08], 0
je 0x428fa7
push 1
mov ecx, 0x4a2bfc
call fcn.00403c50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
and byte [eax + 0x15], 0x86
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8