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

Disassembly:
push 0xffffffffffffffff
push 0x501972
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x5364a8]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5364a8]
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 0x404e60
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 0x4050c0
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.0047ed20
add esp, 0x10
lea ecx, [esp + 0x100]
push ecx
lea ecx, [esp + 0x58]
call fcn.00401f10
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 0x404ef5
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.00401fc0
mov byte [esp + 0x160], 1
call fcn.00412750
cmp eax, 0xffffffff
jne 0x404fb3
mov eax, dword [esp + 0x18]
inc eax
push eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x78]
push 0x513644
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.00404090
add esp, 0x84
cmp dword [esp + 0x18], 5
jle 0x40505f
sub esp, 0x84
mov ecx, esp
mov dword [esp + 0x98], esp
push 0xffffffffffffffff
push 0x513664
call dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_]
call fcn.00404090
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
add esp, 0x84
call eax
jmp 0x40505f
cmp eax, 2
jne 0x404ff1
sub esp, 0x84
mov ecx, esp
mov dword [esp + 0x98], esp
push 0xffffffffffffffff
push 0x513698
call dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_]
call fcn.00404090
mov ecx, dword [esp + 0xa4]
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
add esp, 0x84
call eax
jmp 0x40505f
cmp eax, ebx
jne 0x40502e
sub esp, 0x84
mov ecx, esp
mov dword [esp + 0x98], esp
push 0xffffffffffffffff
push 0x5136b0
call dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_]
call fcn.00404090
mov ecx, dword [esp + 0xa4]
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
add esp, 0x84
call eax
jmp 0x40505f
cmp dword [esp + 0x18], ebx
je 0x40505b
sub esp, 0x84
mov ecx, esp
mov dword [esp + 0x98], esp
push 0xffffffffffffffff
push 0x5136c0
call dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_]
call fcn.00404090
add esp, 0x84
mov dword [esp + 0x18], ebx
mov byte [esp + 0x140], bl
cmp dword [esp + 0x70], 0x10
jb 0x40507a
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0047c2f0
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.00479b60
mov eax, dword [esp + 0x54]
cmp eax, 0xfffffffd
je 0x4050b7
cmp eax, ebx
je 0x4050b3
mov dword [eax], ebx
mov edx, dword [esp + 0x54]
mov eax, dword [edx + 4]
mov dword [esp + 0x54], eax
cmp eax, ebx
jne 0x4050a2
mov dword [esp + 0x54], ebx
lea ecx, [esp + 0x30]
call fcn.00479ba0
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x48]
cmp eax, ebx
je 0x4050d5
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 0x4050e6
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.0040e910
cmp dword [esp + 0x34], ebx
jne 0x404e60
sub esp, 0x20
mov edx, esp
mov dword [esp + 0x34], esp
push edx
mov edi, 0x513608
call fcn.004065c0
mov ecx, dword [esp + 0x3c]
call fcn.0045f730
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.0047bfe0
add esp, 0x130
ret