Function at 0x10003ef0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x1003c20c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
push ebx
push ebp
push esi
mov ebp, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x14], ebx
call fcn.10035b00
lea esi, [ebp + 4]
mov word [esp + 0x30], bx
push ebx
mov ecx, esi
mov dword [esi], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 4], eax
call fcn.10002ae0
mov edi, dword [sym.imp.MSVCRT.dll_getenv]
push str.FIREBIRD
mov dword [esp + 0x170], ebx
mov dword [ebp], 0x1003d374
call edi
add esp, 4
test eax, eax
je 0x10003f97
push str.FIREBIRD
call edi
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.10004450
mov eax, dword [0x1003d370]
mov cl, byte [0x10041870]
mov edi, dword [ebp + 0x10]
push 1
mov byte [esp + 0x17], cl
push eax
lea edx, [esp + 0x1b]
jmp 0x10003fe9
lea ecx, [esp + 0x60]
push 0x104
push ecx
mov byte [esp + 0x68], bl
call fcn.10003ea0
mov al, byte [esp + 0x68]
add esp, 8
cmp al, bl
je 0x1000400e
lea edi, [esp + 0x60]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.10004450
mov eax, dword [0x1003d370]
mov cl, byte [0x10041870]
mov edi, dword [ebp + 0x10]
push 1
mov byte [esp + 0x17], cl
push eax
lea edx, [esp + 0x1b]
push edx
mov ecx, esi
call fcn.100043d0
dec edi
cmp eax, edi
je 0x100041c7
mov al, byte [0x10041870]
mov ecx, esi
push eax
push 1
call fcn.100025a0
jmp 0x100041c7
lea ecx, [esp + 0x60]
push 0x104
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call fcn.10035b00
mov word [esp + 0x30], bx
mov edx, dword [esp + 0x30]
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
call fcn.10002ae0
lea edi, [esp + 0x60]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x60]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.10004450
mov eax, dword [0x1003d370]
mov cl, byte [0x10041870]
mov edi, 1
lea edx, [esp + 0x13]
push edi
mov byte [esp + 0x17], cl
push eax
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x178], 1
call fcn.100043d0
push eax
lea eax, [esp + 0x4c]
push ebx
push eax
lea ecx, [esp + 0x24]
call fcn.100023c0
mov ecx, dword [0x1003d370]
mov byte [esp + 0x16c], 2
push ecx
push ebx
push eax
lea ecx, [esp + 0x24]
call fcn.10002670
push edi
lea ecx, [esp + 0x4c]
mov byte [esp + 0x170], 1
call fcn.10002ae0
mov eax, dword [esp + 0x24]
mov dl, byte [0x10041870]
push edi
lea ecx, [esp + 0x17]
push eax
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x1f], dl
call fcn.100043d0
cmp eax, ebx
je 0x10004104
push eax
lea edx, [esp + 0x4c]
push ebx
push edx
lea ecx, [esp + 0x24]
call fcn.100023c0
mov dword [esp + 0x14], edi
mov byte [esp + 0x16c], 3
jmp 0x10004108
lea eax, [esp + 0x18]
mov cl, byte [0x10041870]
lea edx, [esp + 0x34]
push ecx
push eax
push edx
call fcn.100044f0
add esp, 0xc
mov ecx, dword [0x1003d370]
mov dword [esp + 0x16c], 4
push ecx
push ebx
push eax
mov ecx, esi
call fcn.10002670
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x16c], 3
cmp eax, ebx
je 0x10004162
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x10004158
dec al
mov byte [ecx], al
jmp 0x10004162
push ecx
mov ecx, dword [esp + 0x38]
call fcn.100359a0
mov al, byte [esp + 0x14]
mov dword [esp + 0x3c], ebx
test al, 1
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x16c], edi
je 0x1000419f
mov eax, dword [esp + 0x50]
cmp eax, ebx
je 0x1000419f
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x10004195
dec al
mov byte [ecx], al
jmp 0x1000419f
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.100359a0
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x16c], bl
cmp ecx, ebx
je 0x100041c7
mov al, byte [ecx - 1]
cmp al, bl
je 0x100041bc
dec al
mov byte [ecx - 1], al
jmp 0x100041c7
dec ecx
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.100359a0
mov ecx, dword [esp + 0x164]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x160
ret