Function at 0x405230
Capabilities:
Print debug messages
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x437885
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x44a728]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push esi
push edi
mov eax, dword [0x44a728]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
push str.CPatchExpClientDlg::SendTQOSLoginReport___begins
mov dword [esp + 0x1c], edx
call fcn.00402210
mov ecx, 1
add esp, 4
cmp dword [edx + 0x384], ecx
jne 0x40529d
push str.CPatchExpClientDlg::SendTQOSLoginReport___bIsSentTQOS__TRUE._returned.
call fcn.00402210
jmp 0x405744
xor ebx, ebx
mov eax, 7
mov dword [esp + 0xc8], vtable.CIniManagerW.0
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe0], ebx
mov word [esp + 0xd0], bx
mov dword [esp + 0xf8], ebx
push 0xb
push 0x43f6d8
lea esi, [esp + 0x24]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
call fcn.004017b0
lea eax, [esp + 0x38]
push eax
mov edi, esi
lea ecx, [esp + 0xcc]
mov byte [esp + 0xfc], 1
call fcn.004012e0
mov byte [esp + 0xf8], bl
cmp dword [esp + 0x34], 8
jb 0x405323
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00406d00
add esp, 4
push 2
mov edi, 7
push 0x4406b0
lea esi, [esp + 0x44]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
call fcn.004017b0
mov byte [esp + 0xf8], 2
push 4
push str.TQOS
lea esi, [esp + 0x7c]
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], bx
call fcn.004017b0
lea edx, [esp + 0x3c]
push edx
mov eax, esi
push eax
lea edx, [esp + 0x98]
lea ecx, [esp + 0xd0]
mov byte [esp + 0x100], 3
call fcn.004011d0
mov esi, 8
mov byte [esp + 0xf8], 4
cmp dword [eax + 0x18], esi
jb 0x4053ad
mov eax, dword [eax + 4]
jmp 0x4053b0
add eax, 4
push eax
lea ecx, [esp + 0x14]
call fcn.00405bf0
cmp dword [esp + 0xa8], esi
jb 0x4053d3
mov ecx, dword [esp + 0x94]
push ecx
call fcn.00406d00
add esp, 4
mov dword [esp + 0xa8], edi
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], bx
cmp dword [esp + 0x8c], esi
jb 0x4053ff
mov edx, dword [esp + 0x78]
push edx
call fcn.00406d00
add esp, 4
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
mov byte [esp + 0xf8], 8
cmp dword [esp + 0x54], esi
jb 0x40542d
mov eax, dword [esp + 0x40]
push eax
call fcn.00406d00
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
jne 0x405455
push 0xf
push str.ied_tqos.qq.com
lea ecx, [esp + 0x18]
call fcn.00405e10
push 4
push str.PORT
lea esi, [esp + 0x24]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
call fcn.004017b0
mov byte [esp + 0xf8], 9
push 4
push str.TQOS
lea esi, [esp + 0x60]
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
call fcn.004017b0
lea edx, [esp + 0x1c]
push edx
mov eax, esi
push eax
lea edx, [esp + 0xb4]
lea ecx, [esp + 0xd0]
mov byte [esp + 0x100], 0xa
call fcn.004011d0
mov esi, 8
mov byte [esp + 0xf8], 0xb
cmp dword [eax + 0x18], esi
jb 0x4054d1
mov eax, dword [eax + 4]
jmp 0x4054d4
add eax, 4
push eax
lea ecx, [esp + 0x18]
call fcn.00405bf0
cmp dword [esp + 0xc4], esi
jb 0x4054f7
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.00406d00
add esp, 4
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc0], ebx
mov word [esp + 0xb0], bx
cmp dword [esp + 0x70], esi
jb 0x405520
mov edx, dword [esp + 0x5c]
push edx
call fcn.00406d00
add esp, 4
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
mov byte [esp + 0xf8], 0xf
cmp dword [esp + 0x34], esi
jb 0x405548
mov eax, dword [esp + 0x20]
push eax
call fcn.00406d00
add esp, 4
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
jne 0x40556e
push 4
push str.8000
lea ecx, [esp + 0x1c]
call fcn.00405e10
mov esi, dword [esp + 0x18]
mov ecx, dword [esi + 0x394]
mov edx, dword [esi + 0x390]
xor eax, eax
cmp ecx, ebx
jl 0x4055ac
jg 0x40558a
cmp edx, ebx
jbe 0x4055ac
mov eax, dword [esi + 0x388]
push ecx
push edx
mov edx, dword [esi + 0x38c]
push edx
push eax
call fcn.004259b0
push ebx
push 0x400
push edx
push eax
call fcn.004259b0
push str.CPatchExpClientDlg::SendTQOSLoginReport___TQOS_LoadLibrary___begins.
mov dword [esi + 0x314], eax
call fcn.00402210
add esp, 4
push str.CNWrapperLib.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [0x44e6cc], eax
jne 0x405615
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.CNWrapperLib.dll_LoadLibrary_failed_n
call esi
push str.Failed_to_load_TQOS_library__TQOS_LoadLibrary_
call esi
push str.Failed_to_load_TQOS_library__TQOS_LoadLibrary_
call fcn.00402210
mov byte [esp + 0xfc], 8
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4056ef
push str.CPatchExpClientDlg::SendTQOSLoginReport___TQOS_LoadLibrary___success.
call fcn.00402210
push str.CPatchExpClientDlg::SendTQOSLoginReport___TQOS_SendUserLoginReport___begins.
call fcn.00402210
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
push edx
call fcn.00422657
movzx eax, ax
mov dword [esp + 0x24], eax
mov eax, dword [0x44e6cc]
add esp, 0xc
cmp eax, ebx
je 0x405670
push str.TQOS_SendUserLoginReport
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x405670
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esi + 0x2e4]
push edi
push edx
call eax
add esp, 0xc
cmp eax, ebx
jne 0x405685
push str.Failed_to_send_TQOS_report__SendTQOSLoginReport_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.Failed_to_send_TQOS_report__SendTQOSLoginReport_
jmp 0x4055ec
push str.CPatchExpClientDlg::SendTQOSLoginReport___TQOS_SendUserLoginReport___success.
mov dword [esi + 0x384], 1
call fcn.00402210
push str.CPatchExpClientDlg::SendTQOSLoginReport___TQOS_FreeLibrary___begins.
call fcn.00402210
mov eax, dword [0x44e6cc]
add esp, 8
cmp eax, ebx
je 0x4056bc
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x44e6cc], ebx
push str.CPatchExpClientDlg::SendTQOSLoginReport___TQOS_FreeLibrary___finished.
call fcn.00402210
push str.CPatchExpClientDlg::SendTQOSLoginReport___Succeed_to_send_TQOS_report.
call fcn.00402210
mov byte [esp + 0x100], 8
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4056fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xf8], bl
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405722
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0xe4], 8
mov dword [esp + 0xc8], vtable.CIniManagerW.0
jb 0x405747
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.00406d00
add esp, 4
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.004217b9
mov esp, ebp
pop ebp
ret