Function at 0x404df0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x502cc2
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x5384a8]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5384a8]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0xd18]
xor ebx, ebx
lea ecx, [esp + 0x74]
mov dword [esp + 0x20], edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
xor esi, esi
mov dword [esp + 0x18], ebx
call dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_void_]
mov ebp, dword [esp + 0x50]
add edi, 0xc8c
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x140], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
jmp 0x404e80
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
lea eax, [esp + 0x3c]
push eax
call edx
mov dword [esp + 0x34], eax
mov eax, 0x88888889
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, eax
shl ecx, 4
sub ecx, eax
add ecx, ecx
mov edx, esi
sub edx, ecx
jne 0x4050e0
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
push ecx
push edx
lea eax, [esp + 0x108]
push str.onlineid_dnodetype_d
push eax
call fcn.0047fe00
add esp, 0x10
lea ecx, [esp + 0x100]
push ecx
lea ecx, [esp + 0x58]
call fcn.00401f40
sub esp, 0x20
mov ecx, esp
mov dword [ecx], ebx
cmp dword [esp + 0x74], 0xfffffffd
mov dword [esp + 0x34], esp
mov dword [esp + 0x34], ecx
jne 0x404f15
mov dword [ecx], 0xfffffffd
push 0xffffffffffffffff
mov byte [esp + 0x164], 2
push ebx
lea edx, [esp + 0x7c]
mov dword [ecx + 0x1c], 0xf
mov dword [ecx + 0x18], ebx
push edx
mov byte [ecx + 8], bl
call fcn.00401ff0
mov byte [esp + 0x160], 1
call fcn.004129c0
cmp eax, 0xffffffff
jne 0x404fd3
mov eax, dword [esp + 0x18]
inc eax
push eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x78]
push 0x51563c
push eax
call dword [sym.imp.LibDui.dll_public:_int___cdecl_DuiLib::CDuiString::Format_wchar_t_const__]
sub esp, 0x78
lea edx, [esp + 0xf8]
mov ecx, esp
mov dword [esp + 0x98], esp
push edx
call dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__]
call fcn.004040c0
add esp, 0x84
cmp dword [esp + 0x18], 5
jle 0x40507f
sub esp, 0x84
mov ecx, esp
mov dword [esp + 0x98], esp
push 0xffffffffffffffff
push 0x51565c
call dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_]
call fcn.004040c0
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
add esp, 0x84
call eax
jmp 0x40507f
cmp eax, 2
jne 0x405011
sub esp, 0x84
mov ecx, esp
mov dword [esp + 0x98], esp
push 0xffffffffffffffff
push 0x515690
call dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_]
call fcn.004040c0
mov ecx, dword [esp + 0xa4]
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
add esp, 0x84
call eax
jmp 0x40507f
cmp eax, ebx
jne 0x40504e
sub esp, 0x84
mov ecx, esp
mov dword [esp + 0x98], esp
push 0xffffffffffffffff
push 0x5156a8
call dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_]
call fcn.004040c0
mov ecx, dword [esp + 0xa4]
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
add esp, 0x84
call eax
jmp 0x40507f
cmp dword [esp + 0x18], ebx
je 0x40507b
sub esp, 0x84
mov ecx, esp
mov dword [esp + 0x98], esp
push 0xffffffffffffffff
push 0x5156b8
call dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_]
call fcn.004040c0
add esp, 0x84
mov dword [esp + 0x18], ebx
mov byte [esp + 0x140], bl
cmp dword [esp + 0x70], 0x10
jb 0x40509a
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0047d3e0
add esp, 4
push 3
lea ecx, [esp + 0x34]
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
call fcn.0047ac60
mov eax, dword [esp + 0x54]
cmp eax, 0xfffffffd
je 0x4050d7
cmp eax, ebx
je 0x4050d3
mov dword [eax], ebx
mov edx, dword [esp + 0x54]
mov eax, dword [edx + 4]
mov dword [esp + 0x54], eax
cmp eax, ebx
jne 0x4050c2
mov dword [esp + 0x54], ebx
lea ecx, [esp + 0x30]
call fcn.0047aca0
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x48]
cmp eax, ebx
je 0x4050f5
call eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x4c]
cmp eax, ebx
je 0x405106
call eax
mov edi, eax
mov ebp, edx
mov edx, dword [esp + 0x48]
mov eax, edi
sub eax, dword [esp + 0x24]
mov ecx, ebp
sbb ecx, dword [esp + 0x28]
inc esi
push ecx
mov ecx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x4c]
push ebp
push edi
push edx
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], ebp
call fcn.0040eb80
cmp dword [esp + 0x34], ebx
jne 0x404e80
sub esp, 0x20
mov edx, esp
mov dword [esp + 0x34], esp
push edx
mov edi, 0x515600
call fcn.004065c0
mov ecx, dword [esp + 0x3c]
call fcn.00460720
lea ecx, [esp + 0x74]
mov dword [esp + 0x140], 0xffffffff
call dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0047d0e0
add esp, 0x130
ret