Function at 0x405db0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x60
mov ebx, edx
mov esi, ecx
mov dword [esp + 0x14], 0x4b8fbc
call fcn.00407380
lea edi, [esp + 0x30]
lea eax, [esp + 0x50]
mov ecx, edi
push eax
push str.product
call fcn.00480b10
push 0x41
push 0x4ce020
push edi
call fcn.00414780
add esp, 0xc
mov eax, dword [esp + 0x30]
lea ecx, [eax - 0xc]
cmp ecx, 0x4b8fb0
jne 0x406325
push str.ANDROID_PRODUCT_OUT
call sub.msvcrt.dll_getenv
add esp, 4
test eax, eax
je 0x40643d
cmp byte [eax], 0
je 0x40643d
push str.android_info.txt
push eax
push str._s__s
push edi
call fcn.0042e590
add esp, 0x10
lea ecx, [esp + 0x14]
push edi
call fcn.0047f670
mov eax, dword [esp + 0x30]
lea ecx, [eax - 0xc]
cmp ecx, 0x4b8fb0
jne 0x406346
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], esi
cmp dword [eax - 0xc], 0
je 0x406466
lea esi, [esp + 0x30]
lea edx, [esp + 0x10]
mov ecx, esi
push edx
push eax
call fcn.00480b10
lea edx, [esp + 0x50]
mov ecx, esi
call fcn.00405a00
mov ebx, eax
mov eax, dword [esp + 0x30]
lea ecx, [eax - 0xc]
cmp ecx, 0x4b8fb0
jne 0x406367
test ebx, ebx
je 0x40638b
mov edx, dword [esp + 0x50]
mov ecx, ebx
push dword [esp + 0x54]
call fcn.004075d0
add esp, 4
xor edi, edi
cmp byte [esp + 0x2c], 0
mov ebx, dword [esp + 0x18]
mov edx, 0
mov dword [esp + 0x10], 0x4b8fbc
jne 0x406015
mov ecx, ebx
push 0x4ba407
call fcn.00457890
test eax, eax
je 0x405f12
call fcn.00406e50
mov ecx, eax
test eax, eax
je 0x405f4c
mov eax, dword [ebx]
movsx eax, byte [eax]
add eax, 0xffffffa0
cdq
idiv ecx
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x30]
add dl, 0x61
movsx edx, dl
push eax
push edx
push 1
call fcn.00480d10
jmp 0x405f5f
lea ebx, [esp + 0x30]
mov ecx, ebx
call fcn.00406f80
call fcn.00406e50
mov ecx, eax
test eax, eax
je 0x405f96
mov eax, dword [esp + 0x30]
movsx eax, byte [eax]
add eax, 0xffffffa0
cdq
idiv ecx
mov eax, esp
lea ecx, [esp + 0x1c]
add dl, 0x61
movsx edx, dl
push eax
push edx
push 1
call fcn.00480d10
jmp 0x405fa7
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x30]
push eax
push 0x4ba407
call fcn.00480b10
lea ecx, [esp + 0x10]
lea eax, [esp + 0x30]
push eax
call fcn.0047f670
mov eax, dword [esp + 0x30]
lea ecx, [eax - 0xc]
cmp ecx, 0x4b8fb0
je 0x405fdf
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x405fdf
lea eax, [esp + 0x1c]
push eax
call fcn.0047f3e0
jmp 0x405fdf
mov eax, esp
lea ecx, [esp + 0x1c]
push eax
push 0x4ba407
call fcn.00480b10
mov eax, dword [esp + 0x30]
lea ecx, [eax - 0xc]
cmp ecx, 0x4b8fb0
jne 0x406401
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
call fcn.0047f670
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 0xc]
cmp ecx, 0x4b8fb0
jne 0x406420
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0x4ba407
call fcn.00457890
mov dl, 1
test eax, eax
jne 0x406015
call fcn.00406e50
cmp eax, 2
jl 0x406013
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push str.Warning:_Could_not_determine_slot_for_secondary_images._Ignoring._n
push eax
call fcn.00409350
add esp, 8
xor edx, edx
xor dl, 1
mov esi, 0x4b3018
mov dword [esp + 4], edx
jmp 0x4060e0
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x406159
lea eax, [esp + 0x1c]
push eax
call fcn.0047f3e0
jmp 0x406159
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
mov edx, dword [esp + 4]
jg 0x406287
lea eax, [esp + 0x1c]
push eax
call fcn.0047f3e0
mov edx, dword [esp + 4]
jmp 0x406287
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
mov edx, dword [esp + 4]
jg 0x4062a0
lea eax, [esp + 0x1c]
push eax
call fcn.0047f3e0
mov edx, dword [esp + 4]
jmp 0x4062a0
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x4061b9
lea eax, [esp + 0x4c]
push eax
call fcn.0047f3e0
jmp 0x4061b9
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x4061cc
mov eax, esp
push eax
call fcn.0047f3e0
jmp 0x4061cc
mov eax, dword [esi - 0xc]
test eax, eax
sete cl
test cl, dl
jne 0x4062a0
test eax, eax
lea eax, [esp + 0x10]
cmovne eax, ebx
mov eax, dword [eax]
test eax, eax
je 0x4062a0
mov ebx, dword [esi - 8]
mov dword [esp + 0x2c], eax
push str.ANDROID_PRODUCT_OUT
call sub.msvcrt.dll_getenv
add esp, 4
test eax, eax
je 0x40643d
cmp byte [eax], 0
je 0x40643d
push ebx
push eax
push str._s__s
lea ebx, [esp + 0x3c]
push ebx
call fcn.0042e590
add esp, 0x10
lea ecx, [esp + 0x14]
push ebx
call fcn.0047f670
mov eax, dword [esp + 0x30]
lea ecx, [eax - 0xc]
cmp ecx, 0x4b8fb0
jne 0x406026
mov ecx, dword [esp + 0x14]
mov edx, ebx
call fcn.00406470
mov ebx, dword [esp + 0x18]
test al, al
je 0x4061e8
cmp byte [esi + 5], 0
lea eax, [esp + 0x1c]
je 0x4061fb
mov ecx, eax
lea eax, [esp + 0xc]
push eax
push dword [esi]
call fcn.00480b10
mov ebx, esp
lea eax, [esp + 8]
mov ecx, ebx
push eax
push dword [esp + 0x30]
call fcn.00480b10
lea ecx, [esp + 0x1c]
mov edx, ebx
call fcn.00407bc0
mov ebx, eax
mov eax, dword [esp]
lea ecx, [eax - 0xc]
cmp ecx, 0x4b8fb0
jne 0x406099
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 0xc]
cmp ecx, 0x4b8fb0
jne 0x4060ba
test bl, bl
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 4]
je 0x4062a0
lea eax, [edi + edi*4]
lea eax, [eax*4 + 0x4b3018]
jmp 0x4061fd
cmp byte [esi + 4], 0
mov edx, dword [esp + 4]
jne 0x4062a0
jmp 0x406447
mov eax, esi
mov ebx, esp
lea edx, [esp + 0xc]
mov ecx, ebx
push edx
push dword [eax]
call fcn.00480b10
lea ebx, [esp + 0x4c]
lea eax, [esp + 8]
mov ecx, ebx
push eax
push dword [esp + 0x30]
call fcn.00480b10
push 8
call fcn.004af380
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], 0x407f80
mov dword [esp + 0x24], 0x408220
mov edx, ebx
mov dword [eax], ecx
lea ecx, [esp + 0x30]
mov dword [eax + 4], ecx
mov ecx, esp
push 0
lea ebx, [esp + 0x20]
push ebx
call fcn.00405820
add esp, 8
mov eax, dword [esp + 0x24]
test eax, eax
je 0x406270
push 3
push ebx
push ebx
call eax
add esp, 0xc
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 4]
lea ecx, [eax - 0xc]
cmp ecx, 0x4b8fb0
jne 0x406047
mov eax, dword [esp]
mov ebx, dword [esp + 0x18]
lea ecx, [eax - 0xc]
cmp ecx, 0x4b8fb0
jne 0x406070
nop dword [eax]
inc edi
add esi, 0x14
cmp edi, 0xe
jb 0x4060e0
mov ecx, ebx
push 0x4ba581
call fcn.00457890
test eax, eax
je 0x4062c6
mov ecx, ebx
call fcn.00407f00
jmp 0x4062f3
lea esi, [esp + 0x30]
mov eax, esp
mov ecx, esi
push eax
push 0x4bb52a
call fcn.00480b10
mov ecx, esi
call fcn.00407f00
mov eax, dword [esp + 0x30]
lea ecx, [eax - 0xc]
cmp ecx, 0x4b8fb0
jne 0x4063e0
mov eax, dword [esp + 0x10]
lea esi, [esp + 0x30]
lea ecx, [eax - 0xc]
cmp ecx, 0x4b8fb0
jne 0x4063a6
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, 0x4b8fb0
jne 0x4063c3
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x405e05
lea eax, [esp + 0x1c]
push eax
call fcn.0047f3e0
jmp 0x405e05
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x405e54
lea eax, [esp + 0x1c]
push eax
call fcn.0047f3e0
jmp 0x405e54
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x405e9b
lea eax, [esp + 0x1c]
push eax
call fcn.0047f3e0
test ebx, ebx
jne 0x405ea3
call dword [sym.imp.msvcrt.dll__errno]
push dword [eax]
call sub.msvcrt.dll_strerror
add esp, 4
push eax
push str.could_not_load_android_info.txt:__s
call fcn.0040bb80
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x40630a
push esi
call fcn.0047f3e0
jmp 0x40630a
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x40631d
push esi
call fcn.0047f3e0
jmp 0x40631d
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x4062f3
lea eax, [esp + 0x1c]
push eax
call fcn.0047f3e0
jmp 0x4062f3
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x405fba
mov eax, esp
push eax
call fcn.0047f3e0
jmp 0x405fba
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x405fdb
push ebx
call fcn.0047f3e0
jmp 0x405fdb
push str.ANDROID_PRODUCT_OUT_not_set
call fcn.0040bb80
mov esi, dword [esi - 8]
call dword [sym.imp.msvcrt.dll__errno]
push dword [eax]
call sub.msvcrt.dll_strerror
add esp, 4
push eax
push esi
push str.could_not_load__s:__s
call fcn.0040bb80
push str.cannot_find_android_info.txt
call fcn.0040bb80