Function at 0x404db0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x54c321
mov eax, dword fs:[0]
push eax
sub esp, 0xca8
mov eax, dword [0x5af640]
xor eax, esp
mov dword [esp + 0xca0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5af640]
xor eax, esp
push eax
lea eax, [esp + 0xcbc]
mov dword fs:[0], eax
mov eax, dword [esp + 0xccc]
mov edi, edx
push str.91095A15_3C46_43b5_BA5F_462064037E59
push str.91095A15_3C46_43b5_BA5F_462064037E59
mov dword [esp + 0x20], eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x28], ecx
call fcn.00523e06
add esp, 8
test eax, eax
jne 0x40531b
push 0x408
call fcn.00450896
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x40531b
push eax
call fcn.0042f810
mov esi, eax
mov dword [esp + 0x48], esi
cmp esi, ebx
je 0x40531b
push 0x206
lea eax, [esp + 0x8a]
xor edx, edx
push ebx
push eax
mov word [esp + 0x90], dx
call fcn.00523080
add esp, 0xc
push 0x104
lea ecx, [esp + 0x88]
push ecx
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor edx, edx
lea eax, [esp + 0x84]
mov word [esp + 0x6c], dx
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404ea0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x70]
call fcn.0040cc30
push 0x5885a4
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0xcd0], ebx
call fcn.00410210
add esp, 0xc
mov ebp, 8
mov byte [esp + 0xcc4], 1
cmp dword [eax + 0x18], ebp
jb 0x404ef6
mov eax, dword [eax + 4]
jmp 0x404ef9
add eax, 4
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
mov byte [esp + 0xcc4], bl
cmp dword [esp + 0x3c], ebp
jb 0x404f1d
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004508d0
add esp, 4
mov dword [esp + 0x1c], ebx
mov ecx, str.12010000
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404f48
cmp dl, bl
je 0x404f44
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404f48
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x404f28
xor eax, eax
jmp 0x404f4d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x404fb1
mov ecx, str.12020000
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404f78
cmp dl, bl
je 0x404f74
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404f78
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x404f58
xor eax, eax
jmp 0x404f7d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x404fb1
mov ecx, str.12030000
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404fa8
cmp dl, bl
je 0x404fa4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404fa8
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x404f88
xor eax, eax
jmp 0x404fad
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x404fb9
mov dword [esp + 0x1c], 7
push 0x6590
call fcn.00524099
add esp, 4
push 0xa28
mov esi, eax
push ebx
push esi
call fcn.00523080
add esp, 0xc
push str.__DVersion_:_1.8_
push esi
call fcn.0052768c
push 0xa27
lea edx, [esp + 0x299]
push ebx
push edx
mov byte [esp + 0x2a0], bl
call fcn.00523080
add esp, 0x14
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x290]
push ecx
push 0x5b79f8
mov dword [esp + 0x50], 0xa28
call fcn.00439a70
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405023
sub eax, edx
lea edx, [esp + 0x28c]
push edx
add eax, esi
push str.__Machid_:__s_
push eax
call fcn.0052768c
add esp, 0xc
lea ebx, [esp + 0x4c]
call fcn.00407080
mov eax, esi
mov byte [esp + 0xcc4], 2
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405060
mov ecx, dword [esp + 0x50]
mov ebp, 0x10
sub eax, edx
cmp dword [esp + 0x64], ebp
jae 0x40507c
lea ecx, [esp + 0x50]
push ecx
add eax, esi
push str.__AppVersion_:__s_
push eax
call fcn.0052768c
add esp, 0xc
mov ecx, 0x588614
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4050b4
test dl, dl
je 0x4050b0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4050b4
add eax, 2
add ecx, 2
test dl, dl
jne 0x405094
xor eax, eax
jmp 0x4050b9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, esi
lea edx, [eax + 1]
je 0x405174
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4050c6
sub eax, edx
mov ebx, eax
mov eax, dword [esp + 0x18]
add eax, 0x9c
push eax
lea edi, [esp + 0x28]
call fcn.004168f0
add esp, 4
cmp dword [eax + 0x18], ebp
jb 0x4050f1
mov eax, dword [eax + 4]
jmp 0x4050f4
add eax, 4
push eax
push str.__GameID_:__s_
add ebx, esi
push ebx
call fcn.0052768c
add esp, 0xc
cmp dword [esp + 0x3c], ebp
jb 0x405118
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004508d0
add esp, 4
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405120
sub eax, edx
mov edx, dword [esp + 0x18]
add edx, 0xf0
push edx
lea edi, [esp + 0x28]
mov ebx, eax
call fcn.004168f0
add esp, 4
cmp dword [eax + 0x18], ebp
jb 0x40514c
mov eax, dword [eax + 4]
jmp 0x40514f
add eax, 4
push eax
push str.__GVersion_:__s_
add ebx, esi
push ebx
call fcn.0052768c
add esp, 0xc
cmp dword [esp + 0x3c], ebp
jb 0x405222
mov eax, dword [esp + 0x28]
push eax
jmp 0x40521a
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405174
mov ecx, dword [esp + 0x18]
add ecx, 0x9c
sub eax, edx
push ecx
lea edi, [esp + 0x28]
mov ebx, eax
call fcn.004168f0
add esp, 4
cmp dword [eax + 0x18], ebp
jb 0x4051a0
mov eax, dword [eax + 4]
jmp 0x4051a3
add eax, 4
push eax
push str.__Game_ID_:__s_
add ebx, esi
push ebx
call fcn.0052768c
add esp, 0xc
cmp dword [esp + 0x3c], ebp
jb 0x4051c7
mov edx, dword [esp + 0x28]
push edx
call fcn.004508d0
add esp, 4
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4051d0
sub eax, edx
mov ebx, eax
mov eax, dword [esp + 0x18]
add eax, 0xf0
push eax
lea edi, [esp + 0x28]
call fcn.004168f0
add esp, 4
cmp dword [eax + 0x18], ebp
jb 0x4051fb
mov eax, dword [eax + 4]
jmp 0x4051fe
add eax, 4
push eax
push str.__Game_Version_:__s_
add ebx, esi
push ebx
call fcn.0052768c
add esp, 0xc
cmp dword [esp + 0x3c], ebp
jb 0x405222
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004508d0
add esp, 4
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405227
sub eax, edx
mov edx, dword [esp + 0x18]
add edx, 0x1f0
push edx
lea edi, [esp + 0x28]
mov ebx, eax
call fcn.004168f0
add esp, 4
cmp dword [eax + 0x18], ebp
jb 0x405253
mov eax, dword [eax + 4]
jmp 0x405256
add eax, 4
push eax
push str.__Appchanel_:__s_
add ebx, esi
push ebx
call fcn.0052768c
add esp, 0xc
cmp dword [esp + 0x3c], ebp
jb 0x40527a
mov eax, dword [esp + 0x28]
push eax
call fcn.004508d0
add esp, 4
mov edi, dword [esp + 0x20]
test edi, edi
je 0x4052b1
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405287
sub eax, edx
je 0x4052b1
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405297
sub eax, edx
push edi
add eax, esi
push str.__ErrorMsg_:__s_
push eax
call fcn.0052768c
add esp, 0xc
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
mov edx, dword [edi]
mov edx, dword [edx]
lea eax, [esp + 0x1c]
push eax
push esi
push ecx
mov ecx, edi
call edx
push esi
call fcn.00524163
mov eax, dword [edi]
mov edx, dword [eax + 0x3c]
add esp, 4
push 1
mov ecx, edi
call edx
cmp dword [esp + 0x64], ebp
jb 0x4052ef
mov eax, dword [esp + 0x50]
push eax
call fcn.004508d0
add esp, 4
cmp dword [esp + 0x80], 8
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
jb 0x40531b
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.004508d0
add esp, 4
mov ecx, dword [esp + 0xcbc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xca0]
xor ecx, esp
call fcn.00522f5c
add esp, 0xcb4
ret 4