Function at 0x40cc50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b910
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x48f244]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], 0
call fcn.004169f0
push 0x67
push str.http:__101.201.171.254:85_i_begin_session1app_key1a820a394cde350218b76222cbb36cdc02433303device_id
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
mov esi, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
call fcn.004049f0
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ccc0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00405100
lea eax, [ebp - 0x28]
push eax
call fcn.004123a0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40cd23
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cd19
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d144
push edx
push ecx
call fcn.00439095
add esp, 8
push 8
call fcn.00439065
mov edi, eax
add esp, 4
push 0x34
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00439065
mov ecx, eax
add esp, 4
lea eax, [ecx + 0xc]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [ecx + 4], 1
mov dword [ecx + 8], 1
mov dword [ecx], vtable.std::_Ref_count_obj2_class_CWorkThread_.0
mov byte [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0xf
mov esi, dword [edi + 4]
mov dword [edi], eax
mov dword [edi + 4], ecx
test esi, esi
je 0x40cdce
or ebx, 0xffffffff
mov dword [ebp - 4], 1
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x40cdc4
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov byte [ebp - 4], 2
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x40cdc4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ebx, dword [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp + 8]
push eax
call fcn.0040cb30
mov ecx, eax
call fcn.0040d160
call fcn.0040cb30
lea esi, [eax + 0x49]
call fcn.00410320
push 0x483ad0
push str.LogTrace.lib_ver_ls
lea ecx, [eax + 8]
mov al, byte [esi]
mov byte [ecx], al
call fcn.00410320
push eax
call fcn.00410410
add esp, 0xc
push str.enter_LogTraceStart
call fcn.00410320
push eax
call fcn.00410410
add esp, 8
call fcn.0040cb30
mov esi, 0x483b3c
mov edx, 0x483b48
mov ecx, esi
cmp byte [eax + 0x49], 0
cmove ecx, edx
push ecx
call fcn.0040cb30
cmp byte [eax + 0x48], 0
mov eax, 0x483b48
cmove esi, eax
push esi
push str.caller_set_flag__debug:_ls__log:_ls
call fcn.00410320
push eax
call fcn.00410410
add esp, 0x10
push str.is_debug_mode_
call fcn.00410320
push eax
call fcn.00410410
add esp, 8
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40ceae
push 0x483bc0
call fcn.00410320
push eax
call fcn.00410410
add esp, 8
mov ecx, str.debug
call fcn.0040f680
call fcn.0040cb30
cmp byte [eax + 0x48], 0
jne 0x40cec1
mov edi, 1
xor ebx, ebx
mov esi, edi
jmp 0x40cf97
push 0x483c14
call fcn.00410320
push eax
call fcn.00410410
add esp, 8
push str.is_black_city_
call fcn.00410320
push eax
call fcn.00410410
add esp, 8
call fcn.0040dc10
test al, al
je 0x40cf13
push 0x483bc0
call fcn.00410320
push eax
call fcn.00410410
add esp, 8
mov ecx, str.city
call fcn.0040f680
call fcn.0040cb30
cmp byte [eax + 0x48], 0
jne 0x40cf26
mov edi, 2
xor ebx, ebx
mov esi, edi
jmp 0x40cf97
push 0x483c14
call fcn.00410320
push eax
call fcn.00410410
add esp, 8
push str.is_safe_exist_
call fcn.00410320
push eax
call fcn.00410410
add esp, 8
call fcn.0040cb30
cmp dword [0x493a38], 0
mov esi, dword [eax + 0xb0]
jne 0x40cf5c
push 1
call fcn.00439065
add esp, 4
mov dword [0x493a38], eax
push esi
call fcn.00410760
mov esi, eax
test esi, esi
jle 0x40cfb0
push 0x483bc0
call fcn.00410320
push eax
call fcn.00410410
add esp, 8
mov ecx, 0x483c68
call fcn.0040f680
call fcn.0040cb30
cmp byte [eax + 0x48], 0
jne 0x40cfc3
mov eax, esi
cdq
mov edi, eax
mov ebx, edx
call fcn.00410320
push esi
push str.not_debug_flag__errcode0x_08X
push eax
call fcn.00410410
add esp, 0xc
jmp 0x40d0f4
push 0x483c14
call fcn.00410320
push eax
call fcn.00410410
add esp, 8
mov esi, dword [edi]
cmp byte [esi + 8], 0
jne 0x40cfe7
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x40e890
push 0
push 0
call fcn.0045797b
add esp, 0x18
mov dword [esi], eax
jmp 0x40cff9
push 0
push 0
push 0x7e9
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov eax, dword [edi]
push 0x493e0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40d04e
push 0x483d64
call fcn.00410320
push eax
call fcn.00410410
mov esi, dword [edi]
add esp, 8
mov dword [ebp - 0x44], 0
test esi, esi
je 0x40d04e
lea eax, [esi + 0x10]
cmp ebx, eax
je 0x40d048
cmp dword [eax + 0x14], 0x10
mov edx, eax
jb 0x40d03d
mov edx, dword [eax]
push dword [eax + 0x10]
mov ecx, ebx
push edx
call fcn.00405800
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x44], eax
mov esi, dword [ebp - 0x44]
push esi
push str.leave_LogTraceStart__errcode:0x_08X
call fcn.00410320
push eax
call fcn.00410410
add esp, 0xc
call fcn.004169f0
push 0x65
push str.http:__101.201.171.254:85_i_end_session1app_key1a820a394cde350218b76222cbb36cdc02433303device_id
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0
mov edi, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
call fcn.004049f0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d095
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x40]
call fcn.00405100
lea eax, [ebp - 0x40]
push eax
call fcn.004123a0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40d0ed
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d0e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d149
push edx
push ecx
call fcn.00439095
add esp, 8
mov eax, esi
cdq
mov edi, eax
mov ebx, edx
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x40d124
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d11a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d14e
push edx
push ecx
call fcn.00439095
add esp, 8
mov eax, edi
mov edx, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004390b1
mov esp, ebp
pop ebp
ret
call fcn.004480ba
call fcn.004480ba
call fcn.004480ba
int3