Function at 0x404c30
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x54ccf1
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.00524af6
add esp, 8
test eax, eax
jne 0x40519b
push 0x408
call fcn.00450bec
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x40519b
push eax
call fcn.0042fb10
mov esi, eax
mov dword [esp + 0x48], esi
cmp esi, ebx
je 0x40519b
push 0x206
lea eax, [esp + 0x8a]
xor edx, edx
push ebx
push eax
mov word [esp + 0x90], dx
call fcn.00523d70
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 0x404d20
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x70]
call fcn.0040c670
push 0x589484
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0xcd0], ebx
call fcn.0040fc20
add esp, 0xc
mov ebp, 8
mov byte [esp + 0xcc4], 1
cmp dword [eax + 0x18], ebp
jb 0x404d76
mov eax, dword [eax + 4]
jmp 0x404d79
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 0x404d9d
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00450c1b
add esp, 4
mov dword [esp + 0x1c], ebx
mov ecx, str.12010000
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404dc8
cmp dl, bl
je 0x404dc4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404dc8
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x404da8
xor eax, eax
jmp 0x404dcd
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x404e31
mov ecx, str.12020000
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404df8
cmp dl, bl
je 0x404df4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404df8
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x404dd8
xor eax, eax
jmp 0x404dfd
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x404e31
mov ecx, str.12030000
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404e28
cmp dl, bl
je 0x404e24
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404e28
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x404e08
xor eax, eax
jmp 0x404e2d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x404e39
mov dword [esp + 0x1c], 7
push 0x6590
call fcn.00524d89
add esp, 4
push 0xa28
mov esi, eax
push ebx
push esi
call fcn.00523d70
add esp, 0xc
push str.__DVersion_:_1.8_
push esi
call fcn.00529365
push 0xa27
lea edx, [esp + 0x299]
push ebx
push edx
mov byte [esp + 0x2a0], bl
call fcn.00523d70
add esp, 0x14
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x290]
push ecx
push 0x5b8998
mov dword [esp + 0x50], 0xa28
call fcn.00439db0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404ea3
sub eax, edx
lea edx, [esp + 0x28c]
push edx
add eax, esi
push str.__Machid_:__s_
push eax
call fcn.00529365
add esp, 0xc
lea ebx, [esp + 0x4c]
call fcn.00406ae0
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 0x404ee0
mov ecx, dword [esp + 0x50]
mov ebp, 0x10
sub eax, edx
cmp dword [esp + 0x64], ebp
jae 0x404efc
lea ecx, [esp + 0x50]
push ecx
add eax, esi
push str.__AppVersion_:__s_
push eax
call fcn.00529365
add esp, 0xc
mov ecx, 0x5894f4
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404f34
test dl, dl
je 0x404f30
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404f34
add eax, 2
add ecx, 2
test dl, dl
jne 0x404f14
xor eax, eax
jmp 0x404f39
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, esi
lea edx, [eax + 1]
je 0x404ff4
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404f46
sub eax, edx
mov ebx, eax
mov eax, dword [esp + 0x18]
add eax, 0x9c
push eax
lea edi, [esp + 0x28]
call fcn.004162e0
add esp, 4
cmp dword [eax + 0x18], ebp
jb 0x404f71
mov eax, dword [eax + 4]
jmp 0x404f74
add eax, 4
push eax
push str.__GameID_:__s_
add ebx, esi
push ebx
call fcn.00529365
add esp, 0xc
cmp dword [esp + 0x3c], ebp
jb 0x404f98
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00450c1b
add esp, 4
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404fa0
sub eax, edx
mov edx, dword [esp + 0x18]
add edx, 0xf0
push edx
lea edi, [esp + 0x28]
mov ebx, eax
call fcn.004162e0
add esp, 4
cmp dword [eax + 0x18], ebp
jb 0x404fcc
mov eax, dword [eax + 4]
jmp 0x404fcf
add eax, 4
push eax
push str.__GVersion_:__s_
add ebx, esi
push ebx
call fcn.00529365
add esp, 0xc
cmp dword [esp + 0x3c], ebp
jb 0x4050a2
mov eax, dword [esp + 0x28]
push eax
jmp 0x40509a
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404ff4
mov ecx, dword [esp + 0x18]
add ecx, 0x9c
sub eax, edx
push ecx
lea edi, [esp + 0x28]
mov ebx, eax
call fcn.004162e0
add esp, 4
cmp dword [eax + 0x18], ebp
jb 0x405020
mov eax, dword [eax + 4]
jmp 0x405023
add eax, 4
push eax
push str.__Game_ID_:__s_
add ebx, esi
push ebx
call fcn.00529365
add esp, 0xc
cmp dword [esp + 0x3c], ebp
jb 0x405047
mov edx, dword [esp + 0x28]
push edx
call fcn.00450c1b
add esp, 4
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405050
sub eax, edx
mov ebx, eax
mov eax, dword [esp + 0x18]
add eax, 0xf0
push eax
lea edi, [esp + 0x28]
call fcn.004162e0
add esp, 4
cmp dword [eax + 0x18], ebp
jb 0x40507b
mov eax, dword [eax + 4]
jmp 0x40507e
add eax, 4
push eax
push str.__Game_Version_:__s_
add ebx, esi
push ebx
call fcn.00529365
add esp, 0xc
cmp dword [esp + 0x3c], ebp
jb 0x4050a2
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00450c1b
add esp, 4
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4050a7
sub eax, edx
mov edx, dword [esp + 0x18]
add edx, 0x19c
push edx
lea edi, [esp + 0x28]
mov ebx, eax
call fcn.004162e0
add esp, 4
cmp dword [eax + 0x18], ebp
jb 0x4050d3
mov eax, dword [eax + 4]
jmp 0x4050d6
add eax, 4
push eax
push str.__Appchanel_:__s_
add ebx, esi
push ebx
call fcn.00529365
add esp, 0xc
cmp dword [esp + 0x3c], ebp
jb 0x4050fa
mov eax, dword [esp + 0x28]
push eax
call fcn.00450c1b
add esp, 4
mov edi, dword [esp + 0x20]
test edi, edi
je 0x405131
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405107
sub eax, edx
je 0x405131
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405117
sub eax, edx
push edi
add eax, esi
push str.__ErrorMsg_:__s_
push eax
call fcn.00529365
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.00524e53
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 0x40516f
mov eax, dword [esp + 0x50]
push eax
call fcn.00450c1b
add esp, 4
cmp dword [esp + 0x80], 8
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
jb 0x40519b
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.00450c1b
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.00523c4c
add esp, 0xcb4
ret 4