Function at 0x404b60
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x54d131
mov eax, dword fs:[0]
push eax
sub esp, 0xca8
mov eax, dword [0x5b0630]
xor eax, esp
mov dword [esp + 0xca0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b0630]
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.00524ad6
add esp, 8
test eax, eax
jne 0x4050cb
push 0x408
call fcn.00450beb
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x4050cb
push eax
call fcn.0042fa70
mov esi, eax
mov dword [esp + 0x48], esi
cmp esi, ebx
je 0x4050cb
push 0x206
lea eax, [esp + 0x8a]
xor edx, edx
push ebx
push eax
mov word [esp + 0x90], dx
call fcn.00523d50
add esp, 0xc
push 0x104
lea ecx, [esp + 0x88]
push ecx
push 0x589478
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 0x404c50
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x70]
call fcn.0040c5e0
push 0x589484
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0xcd0], ebx
call fcn.0040fc00
add esp, 0xc
mov ebp, 8
mov byte [esp + 0xcc4], 1
cmp dword [eax + 0x18], ebp
jb 0x404ca6
mov eax, dword [eax + 4]
jmp 0x404ca9
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 0x404ccd
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00450c25
add esp, 4
mov dword [esp + 0x1c], ebx
mov ecx, str.12010000
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404cf8
cmp dl, bl
je 0x404cf4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404cf8
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x404cd8
xor eax, eax
jmp 0x404cfd
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x404d61
mov ecx, str.12020000
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404d28
cmp dl, bl
je 0x404d24
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404d28
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x404d08
xor eax, eax
jmp 0x404d2d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x404d61
mov ecx, str.12030000
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404d58
cmp dl, bl
je 0x404d54
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404d58
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x404d38
xor eax, eax
jmp 0x404d5d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x404d69
mov dword [esp + 0x1c], 7
push 0x6590
call fcn.00524d69
add esp, 4
push 0xa28
mov esi, eax
push ebx
push esi
call fcn.00523d50
add esp, 0xc
push str.__DVersion_:_1.8_
push esi
call fcn.005292f5
push 0xa27
lea edx, [esp + 0x299]
push ebx
push edx
mov byte [esp + 0x2a0], bl
call fcn.00523d50
add esp, 0x14
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x290]
push ecx
push 0x5b89a0
mov dword [esp + 0x50], 0xa28
call fcn.00439cc0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404dd3
sub eax, edx
lea edx, [esp + 0x28c]
push edx
add eax, esi
push str.__Machid_:__s_
push eax
call fcn.005292f5
add esp, 0xc
lea ebx, [esp + 0x4c]
call fcn.00406a10
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 0x404e10
mov ecx, dword [esp + 0x50]
mov ebp, 0x10
sub eax, edx
cmp dword [esp + 0x64], ebp
jae 0x404e2c
lea ecx, [esp + 0x50]
push ecx
add eax, esi
push str.__AppVersion_:__s_
push eax
call fcn.005292f5
add esp, 0xc
mov ecx, 0x5894f4
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404e64
test dl, dl
je 0x404e60
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404e64
add eax, 2
add ecx, 2
test dl, dl
jne 0x404e44
xor eax, eax
jmp 0x404e69
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, esi
lea edx, [eax + 1]
je 0x404f24
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404e76
sub eax, edx
mov ebx, eax
mov eax, dword [esp + 0x18]
add eax, 0x9c
push eax
lea edi, [esp + 0x28]
call fcn.00416200
add esp, 4
cmp dword [eax + 0x18], ebp
jb 0x404ea1
mov eax, dword [eax + 4]
jmp 0x404ea4
add eax, 4
push eax
push str.__GameID_:__s_
add ebx, esi
push ebx
call fcn.005292f5
add esp, 0xc
cmp dword [esp + 0x3c], ebp
jb 0x404ec8
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00450c25
add esp, 4
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404ed0
sub eax, edx
mov edx, dword [esp + 0x18]
add edx, 0xf0
push edx
lea edi, [esp + 0x28]
mov ebx, eax
call fcn.00416200
add esp, 4
cmp dword [eax + 0x18], ebp
jb 0x404efc
mov eax, dword [eax + 4]
jmp 0x404eff
add eax, 4
push eax
push str.__GVersion_:__s_
add ebx, esi
push ebx
call fcn.005292f5
add esp, 0xc
cmp dword [esp + 0x3c], ebp
jb 0x404fd2
mov eax, dword [esp + 0x28]
push eax
jmp 0x404fca
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404f24
mov ecx, dword [esp + 0x18]
add ecx, 0x9c
sub eax, edx
push ecx
lea edi, [esp + 0x28]
mov ebx, eax
call fcn.00416200
add esp, 4
cmp dword [eax + 0x18], ebp
jb 0x404f50
mov eax, dword [eax + 4]
jmp 0x404f53
add eax, 4
push eax
push str.__Game_ID_:__s_
add ebx, esi
push ebx
call fcn.005292f5
add esp, 0xc
cmp dword [esp + 0x3c], ebp
jb 0x404f77
mov edx, dword [esp + 0x28]
push edx
call fcn.00450c25
add esp, 4
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404f80
sub eax, edx
mov ebx, eax
mov eax, dword [esp + 0x18]
add eax, 0xf0
push eax
lea edi, [esp + 0x28]
call fcn.00416200
add esp, 4
cmp dword [eax + 0x18], ebp
jb 0x404fab
mov eax, dword [eax + 4]
jmp 0x404fae
add eax, 4
push eax
push str.__Game_Version_:__s_
add ebx, esi
push ebx
call fcn.005292f5
add esp, 0xc
cmp dword [esp + 0x3c], ebp
jb 0x404fd2
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00450c25
add esp, 4
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404fd7
sub eax, edx
mov edx, dword [esp + 0x18]
add edx, 0x19c
push edx
lea edi, [esp + 0x28]
mov ebx, eax
call fcn.00416200
add esp, 4
cmp dword [eax + 0x18], ebp
jb 0x405003
mov eax, dword [eax + 4]
jmp 0x405006
add eax, 4
push eax
push str.__Appchanel_:__s_
add ebx, esi
push ebx
call fcn.005292f5
add esp, 0xc
cmp dword [esp + 0x3c], ebp
jb 0x40502a
mov eax, dword [esp + 0x28]
push eax
call fcn.00450c25
add esp, 4
mov edi, dword [esp + 0x20]
test edi, edi
je 0x405061
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405037
sub eax, edx
je 0x405061
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405047
sub eax, edx
push edi
add eax, esi
push str.__ErrorMsg_:__s_
push eax
call fcn.005292f5
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.00524e33
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 0x40509f
mov eax, dword [esp + 0x50]
push eax
call fcn.00450c25
add esp, 4
cmp dword [esp + 0x80], 8
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
jb 0x4050cb
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.00450c25
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.00523c2c
add esp, 0xcb4
ret 4