Function at 0x438fc9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565c6a
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x5d6c64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x178], ecx
movzx eax, byte [0x5ea9fd]
test eax, eax
je 0x43900f
mov al, byte [0x5ea9fc]
jmp 0x43996a
mov byte [0x5ea9fd], 1
lea eax, [ebp - 0xa8]
push eax
mov ecx, dword [ebp - 0x178]
call fcn.00438cd0
and dword [ebp - 4], 0
lea ecx, [ebp - 0xa8]
call fcn.004071e0
mov dword [ebp - 0x104], eax
push 0
push dword [ebp - 0x104]
call dword [sym.imp.MSVCR100.dll__waccess]
pop ecx
pop ecx
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x4d], al
movzx eax, byte [ebp - 0x4d]
test eax, eax
je 0x4390ad
push 4
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x43907a
push str._ProcessStateMachine__IsNetBarEnv_true:_tgp_config.ini_exist.
push 4
call fcn.0041b5a4
pop ecx
pop ecx
mov byte [0x5ea9fc], 1
mov byte [ebp - 0xe9], 1
mov dword [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0xa8]
call fcn.00406660
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0xe9]
jmp 0x43996a
lea eax, [ebp - 0x10d]
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x17c], eax
mov byte [ebp - 4], 2
push 0
push 0
lea ecx, [ebp - 0x88]
call fcn.00406660
mov byte [ebp - 4], 3
lea eax, [ebp - 0x119]
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x180], eax
mov byte [ebp - 4], 4
push 0
push 0
lea ecx, [ebp - 0x4c]
call fcn.00406660
mov byte [ebp - 4], 5
push 0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0x178]
call fcn.0043769f
test eax, eax
jne 0x43919c
push 4
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x43913e
push str._ProcessStateMachine__IsNetBarEnv_false:_wegame_not_install.
push 4
call fcn.0041b5a4
pop ecx
pop ecx
mov byte [0x5ea9fc], 0
mov byte [ebp - 0xea], 0
mov byte [ebp - 4], 6
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.00406660
mov byte [ebp - 4], 3
mov byte [ebp - 4], 7
push 0
push 1
lea ecx, [ebp - 0x88]
call fcn.00406660
mov byte [ebp - 4], 0
mov dword [ebp - 4], 8
push 0
push 1
lea ecx, [ebp - 0xa8]
call fcn.00406660
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0xea]
jmp 0x43996a
lea eax, [ebp - 0x125]
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x184], eax
mov byte [ebp - 4], 9
push 0
push 0
lea ecx, [ebp - 0x6c]
call fcn.00406660
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.004276fd
pop ecx
pop ecx
push str.configinitial.info
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.00412033
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xc8]
call fcn.004071e0
mov dword [ebp - 0x12c], eax
push 0x572188
push dword [ebp - 0x12c]
call dword [sym.imp.MSVCR100.dll__wfopen]
pop ecx
pop ecx
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jne 0x4392d0
push 4
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x439247
push str._ProcessStateMachine__IsNetBarEnv_false:_wegame_initial.info_open_failed.
push 4
call fcn.0041b5a4
pop ecx
pop ecx
mov byte [0x5ea9fc], 0
mov byte [ebp - 0xeb], 0
mov byte [ebp - 4], 0xc
push 0
push 1
lea ecx, [ebp - 0xc8]
call fcn.00406660
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 0xd
push 0
push 1
lea ecx, [ebp - 0x6c]
call fcn.00406660
mov byte [ebp - 4], 5
mov byte [ebp - 4], 0xe
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.00406660
mov byte [ebp - 4], 3
mov byte [ebp - 4], 0xf
push 0
push 1
lea ecx, [ebp - 0x88]
call fcn.00406660
mov byte [ebp - 4], 0
mov dword [ebp - 4], 0x10
push 0
push 1
lea ecx, [ebp - 0xa8]
call fcn.00406660
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0xeb]
jmp 0x43996a
push 2
push 0
push dword [ebp - 0x8c]
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0xc
push dword [ebp - 0x8c]
call dword [sym.imp.MSVCR100.dll_ftell]
pop ecx
mov dword [ebp - 0x30], eax
push 0
push 0
push dword [ebp - 0x8c]
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0xc
cmp dword [ebp - 0x30], 0
jg 0x4393ce
push 4
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x439331
push dword [ebp - 0x30]
push str._ProcessStateMachine__IsNetBarEnv_false:_wegame_initial.info_size_d.
push 4
call fcn.0041b5a4
add esp, 0xc
push dword [ebp - 0x8c]
call dword [sym.imp.MSVCR100.dll_fclose]
pop ecx
and dword [ebp - 0x8c], 0
mov byte [0x5ea9fc], 0
mov byte [ebp - 0xec], 0
mov byte [ebp - 4], 0x11
push 0
push 1
lea ecx, [ebp - 0xc8]
call fcn.00406660
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 0x12
push 0
push 1
lea ecx, [ebp - 0x6c]
call fcn.00406660
mov byte [ebp - 4], 5
mov byte [ebp - 4], 0x13
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.00406660
mov byte [ebp - 4], 3
mov byte [ebp - 4], 0x14
push 0
push 1
lea ecx, [ebp - 0x88]
call fcn.00406660
mov byte [ebp - 4], 0
mov dword [ebp - 4], 0x15
push 0
push 1
lea ecx, [ebp - 0xa8]
call fcn.00406660
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0xec]
jmp 0x43996a
mov eax, dword [ebp - 0x30]
inc eax
push eax
call fcn.00460f9e
pop ecx
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
add eax, dword [ebp - 0x30]
mov byte [eax], 0
push dword [ebp - 0x8c]
push dword [ebp - 0x30]
push 1
push dword [ebp - 0xac]
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
cmp eax, dword [ebp - 0x30]
je 0x439509
push 4
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x43944d
push dword [ebp - 0x30]
push dword [ebp - 0xcc]
push str._ProcessStateMachine__IsNetBarEnv_false:_wegame_initial.info_read_size_u__real_size_u
push 4
call fcn.0041b5a4
add esp, 0x10
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xf4], eax
push dword [ebp - 0xf4]
call fcn.004614b8
pop ecx
and dword [ebp - 0xac], 0
push dword [ebp - 0x8c]
call dword [sym.imp.MSVCR100.dll_fclose]
pop ecx
and dword [ebp - 0x8c], 0
mov byte [0x5ea9fc], 0
mov byte [ebp - 0xf5], 0
mov byte [ebp - 4], 0x16
push 0
push 1
lea ecx, [ebp - 0xc8]
call fcn.00406660
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 0x17
push 0
push 1
lea ecx, [ebp - 0x6c]
call fcn.00406660
mov byte [ebp - 4], 5
mov byte [ebp - 4], 0x18
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.00406660
mov byte [ebp - 4], 3
mov byte [ebp - 4], 0x19
push 0
push 1
lea ecx, [ebp - 0x88]
call fcn.00406660
mov byte [ebp - 4], 0
mov dword [ebp - 4], 0x1a
push 0
push 1
lea ecx, [ebp - 0xa8]
call fcn.00406660
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0xf5]
jmp 0x43996a
lea eax, [ebp - 0x135]
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0xe8]
mov dword [ebp - 0x188], eax
mov byte [ebp - 4], 0x1b
push 0
push 0
lea ecx, [ebp - 0xe8]
call fcn.00406430
mov byte [ebp - 4], 0x1c
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0xd8]
ja 0x439559
push dword [0x5c0400]
push dword [ebp - 0x30]
lea ecx, [ebp - 0xe8]
call fcn.00406d00
jmp 0x439570
push 0
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0xd8]
push eax
lea ecx, [ebp - 0xe8]
call fcn.00406180
push dword [ebp - 0x30]
push dword [ebp - 0xac]
lea ecx, [ebp - 0xe8]
call fcn.00406480
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xfc], eax
push dword [ebp - 0xfc]
call fcn.004614b8
pop ecx
and dword [ebp - 0xac], 0
push dword [ebp - 0x8c]
call dword [sym.imp.MSVCR100.dll_fclose]
pop ecx
and dword [ebp - 0x8c], 0
lea eax, [ebp - 0x141]
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x18c], eax
mov byte [ebp - 4], 0x1d
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.00406430
mov byte [ebp - 4], 0x1e
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.0042e476
pop ecx
pop ecx
movzx eax, al
test eax, eax
jne 0x4396d7
push 4
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x439623
push str._ProcessStateMachine__IsNetBarEnv_false:_wegame_initial.info_cant_decode
push 4
call fcn.0041b5a4
pop ecx
pop ecx
mov byte [0x5ea9fc], 0
mov byte [ebp - 0xfd], 0
mov byte [ebp - 4], 0x1f
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406430
mov byte [ebp - 4], 0x1c
mov byte [ebp - 4], 0x20
push 0
push 1
lea ecx, [ebp - 0xe8]
call fcn.00406430
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 0x21
push 0
push 1
lea ecx, [ebp - 0xc8]
call fcn.00406660
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 0x22
push 0
push 1
lea ecx, [ebp - 0x6c]
call fcn.00406660
mov byte [ebp - 4], 5
mov byte [ebp - 4], 0x23
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.00406660
mov byte [ebp - 4], 3
mov byte [ebp - 4], 0x24
push 0
push 1
lea ecx, [ebp - 0x88]
call fcn.00406660
mov byte [ebp - 4], 0
mov dword [ebp - 4], 0x25
push 0
push 1
lea ecx, [ebp - 0xa8]
call fcn.00406660
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0xfd]
jmp 0x43996a
push str.channel_id_1
call sub.MSVCR100.dll_strlen
pop ecx
mov dword [ebp - 0x148], eax
push dword [ebp - 0x148]
push 0
push str.channel_id_1
lea ecx, [ebp - 0x2c]
call fcn.00418957
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x14c]
cmp eax, dword [0x5c0400]
jne 0x439843
push str.channel_id__1
call sub.MSVCR100.dll_strlen
pop ecx
mov dword [ebp - 0x150], eax
push dword [ebp - 0x150]
push 0
push str.channel_id__1
lea ecx, [ebp - 0x2c]
call fcn.00418957
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x154]
cmp eax, dword [0x5c0400]
jne 0x439843
push str.channel_id___1
call sub.MSVCR100.dll_strlen
pop ecx
mov dword [ebp - 0x158], eax
push dword [ebp - 0x158]
push 0
push str.channel_id___1
lea ecx, [ebp - 0x2c]
call fcn.00418957
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x15c]
cmp eax, dword [0x5c0400]
jne 0x439843
push str.channel_id____1
call sub.MSVCR100.dll_strlen
pop ecx
mov dword [ebp - 0x160], eax
push dword [ebp - 0x160]
push 0
push str.channel_id____1
lea ecx, [ebp - 0x2c]
call fcn.00418957
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x164]
cmp eax, dword [0x5c0400]
jne 0x439843
push str.channel_id_t1
call sub.MSVCR100.dll_strlen
pop ecx
mov dword [ebp - 0x168], eax
push dword [ebp - 0x168]
push 0
push str.channel_id_t1
lea ecx, [ebp - 0x2c]
call fcn.00418957
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x16c]
cmp eax, dword [0x5c0400]
jne 0x439843
push str.channel_id_t_t1
call sub.MSVCR100.dll_strlen
pop ecx
mov dword [ebp - 0x170], eax
push dword [ebp - 0x170]
push 0
push str.channel_id_t_t1
lea ecx, [ebp - 0x2c]
call fcn.00418957
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x174]
cmp eax, dword [0x5c0400]
je 0x4398d9
push 4
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x439860
push str._ProcessStateMachine__IsNetBarEnv_true:_wegame_netbar_version
push 4
call fcn.0041b5a4
pop ecx
pop ecx
mov byte [0x5ea9fc], 1
mov byte [ebp - 0xfe], 1
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x2c]
call fcn.00404bb0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xe8]
call fcn.00404bb0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xc8]
call fcn.00404eb0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x6c]
call fcn.00404eb0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
call fcn.00404eb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x88]
call fcn.00404eb0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.00404eb0
mov al, byte [ebp - 0xfe]
jmp 0x43996a
push 4
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x4398f6
push str._ProcessStateMachine__IsNetBarEnv_false:_wegame_not_netbar_version
push 4
call fcn.0041b5a4
pop ecx
pop ecx
mov byte [0x5ea9fc], 0
mov byte [ebp - 0xff], 0
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x2c]
call fcn.00404bb0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xe8]
call fcn.00404bb0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xc8]
call fcn.00404eb0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x6c]
call fcn.00404eb0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
call fcn.00404eb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x88]
call fcn.00404eb0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.00404eb0
mov al, byte [ebp - 0xff]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004610a0
leave
ret