Function at 0x407228
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov esi, dword [esp + 0x80]
cmp byte [0x471020], 0
jne 0x407253
mov dword [esp], 0x471020
call sub.libstdc_6.dll___cxa_guard_acquire
test eax, eax
jne 0x40755c
mov edi, dword [sym.imp.QtCore4.dll_QString::codecForCStrings]
mov edx, dword [edi]
test edx, edx
je 0x4075a0
lea ebx, [esp + 0x40]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x425658
mov dword [esp], ebx
call dword [method.QString.fromAscii_char_const__int_]
push eax
mov dword [esp + 4], ebx
mov dword [esp], 0x471028
call dword [method.QString.operator_QString_const__const]
mov edx, dword [esp + 0x40]
lock dec dword [edx]
setne cl
test cl, cl
jne 0x4072b5
mov edx, dword [esp + 0x40]
mov dword [esp], edx
mov byte [esp + 0x18], al
call dword [method.QString.free_QString::Data_]
mov al, byte [esp + 0x18]
test al, al
jne 0x4072d4
mov eax, dword [0x471028]
mov dword [esi], eax
lock inc dword [eax]
setne dl
mov eax, esi
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov dword [esp], str.USERNAME
call sub.msvcrt.dll_getenv
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [method.QString.fromAscii_helper_char_const__int_]
mov dword [esp + 0x2c], eax
mov eax, dword [edi]
test eax, eax
je 0x40765c
lea ebp, [esp + 0x48]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x425658
mov dword [esp], ebp
lea ebx, [esp + 0x2c]
call dword [method.QString.fromAscii_char_const__int_]
push eax
mov dword [esp + 4], ebp
lea ebx, [esp + 0x2c]
mov dword [esp], ebx
call dword [method.QString.operator_QString_const__const]
mov ebp, eax
mov eax, dword [esp + 0x48]
lock dec dword [eax]
setne dl
test dl, dl
je 0x407628
mov eax, ebp
test al, al
jne 0x407504
mov eax, dword [edi]
test eax, eax
je 0x40763c
lea edi, [esp + 0x54]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x425658
mov dword [esp], edi
call dword [method.QString.fromAscii_char_const__int_]
push eax
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [method.QString.operator_QString_const__const]
mov edi, eax
mov eax, dword [esp + 0x54]
lock dec dword [eax]
setne dl
test dl, dl
je 0x407614
mov eax, edi
test al, al
jne 0x4074b4
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 1
mov dword [esp + 4], ebx
lea eax, [esp + 0x38]
mov dword [esp], eax
call dword [method.QString.mid_int__int__const]
push ecx
lea ebp, [esp + 0x30]
mov dword [esp + 8], 1
mov dword [esp + 4], ebx
mov dword [esp], ebp
call dword [method.QString.left_int__const]
push edx
mov dword [esp + 4], ebp
lea eax, [esp + 0x34]
mov dword [esp], eax
call dword [method.QString.toUpper___const]
push eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
lock inc dword [eax]
setne dl
lea eax, [esp + 0x38]
mov dword [esp + 4], eax
lea edi, [esp + 0x3c]
mov dword [esp], edi
call dword [method.QString.append_QString_const_]
mov dword [esp + 4], edi
mov dword [esp], ebx
mov eax, dword [method.QString.operator_QString_const_]
mov dword [esp + 0x1c], eax
call eax
mov eax, dword [esp + 0x3c]
lock dec dword [eax]
setne dl
test dl, dl
je 0x407600
mov eax, dword [esp + 0x34]
lock dec dword [eax]
setne dl
test dl, dl
je 0x4075ec
mov eax, dword [esp + 0x30]
lock dec dword [eax]
setne dl
test dl, dl
je 0x4075d8
mov eax, dword [esp + 0x38]
lock dec dword [eax]
setne dl
test dl, dl
je 0x4075c4
mov dword [esp + 4], ebx
mov dword [esp], 0x471028
call dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
mov dword [esi], eax
lock inc dword [eax]
setne dl
mov eax, dword [esp + 0x2c]
lock dec dword [eax]
setne dl
test dl, dl
jne 0x4072c6
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [method.QString.free_QString::Data_]
mov eax, esi
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret 4
lea edi, [esp + 0x5c]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], str.Unknown
mov dword [esp], edi
call dword [method.QString.fromAscii_char_const__int_]
push ebp
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [method.QString.operator_QString_const_]
mov eax, dword [esp + 0x5c]
lock dec dword [eax]
setne dl
test dl, dl
jne 0x4073a3
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call dword [method.QString.free_QString::Data_]
jmp 0x4073a3
mov dword [esp], str.USER
call sub.msvcrt.dll_getenv
lea ebp, [esp + 0x50]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], eax
mov dword [esp], ebp
call dword [method.QString.fromAscii_char_const__int_]
push eax
mov dword [esp + 4], ebp
mov dword [esp], ebx
call dword [method.QString.operator_QString_const_]
mov eax, dword [esp + 0x50]
lock dec dword [eax]
setne dl
test dl, dl
jne 0x407350
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call dword [method.QString.free_QString::Data_]
jmp 0x407350
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0x425658
call dword [method.QString.fromAscii_helper_char_const__int_]
mov dword [0x471028], eax
mov dword [esp], 0x471020
call sub.libstdc_6.dll___cxa_guard_release
mov dword [esp], 0x407204
call fcn.0040129c
mov edi, dword [sym.imp.QtCore4.dll_QString::codecForCStrings]
mov edx, dword [edi]
test edx, edx
jne 0x407263
nop
mov dword [esp + 0x44], 0x425658
lea eax, [esp + 0x44]
mov dword [esp + 4], eax
mov dword [esp], 0x471028
call dword [method.QString.operator_QLatin1String_const__const]
jmp 0x4072b5
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call dword [method.QString.free_QString::Data_]
jmp 0x40746e
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call dword [method.QString.free_QString::Data_]
jmp 0x40745c
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call dword [method.QString.free_QString::Data_]
jmp 0x40744a
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call dword [method.QString.free_QString::Data_]
jmp 0x407438
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call dword [method.QString.free_QString::Data_]
jmp 0x407399
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call dword [method.QString.free_QString::Data_]
jmp 0x407346
mov dword [esp + 0x58], 0x425658
lea eax, [esp + 0x58]
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [method.QString.operator_QLatin1String_const__const]
mov edi, eax
jmp 0x407399
mov dword [esp + 0x4c], 0x425658
lea eax, [esp + 0x4c]
mov dword [esp + 4], eax
lea ebx, [esp + 0x2c]
mov dword [esp], ebx
call dword [method.QString.operator_QLatin1String_const__const]
mov ebp, eax
jmp 0x407346