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

Disassembly:
push 0xffffffffffffffff
push 0x4e4382
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x5134a8]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5134a8]
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 0x404de0
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 0x405040
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.004634b0
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 0x404e75
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.004124c0
cmp eax, 0xffffffff
jne 0x404f33
mov eax, dword [esp + 0x18]
inc eax
push eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x78]
push 0x4f661c
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.00404020
add esp, 0x84
cmp dword [esp + 0x18], 5
jle 0x404fdf
sub esp, 0x84
mov ecx, esp
mov dword [esp + 0x98], esp
push 0xffffffffffffffff
push 0x4f663c
call dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_]
call fcn.00404020
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
add esp, 0x84
call eax
jmp 0x404fdf
cmp eax, 2
jne 0x404f71
sub esp, 0x84
mov ecx, esp
mov dword [esp + 0x98], esp
push 0xffffffffffffffff
push 0x4f6670
call dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_]
call fcn.00404020
mov ecx, dword [esp + 0xa4]
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
add esp, 0x84
call eax
jmp 0x404fdf
cmp eax, ebx
jne 0x404fae
sub esp, 0x84
mov ecx, esp
mov dword [esp + 0x98], esp
push 0xffffffffffffffff
push 0x4f6688
call dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_]
call fcn.00404020
mov ecx, dword [esp + 0xa4]
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
add esp, 0x84
call eax
jmp 0x404fdf
cmp dword [esp + 0x18], ebx
je 0x404fdb
sub esp, 0x84
mov ecx, esp
mov dword [esp + 0x98], esp
push 0xffffffffffffffff
push 0x4f6698
call dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_]
call fcn.00404020
add esp, 0x84
mov dword [esp + 0x18], ebx
mov byte [esp + 0x140], bl
cmp dword [esp + 0x70], 0x10
jb 0x404ffa
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00460a90
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.0045e310
mov eax, dword [esp + 0x54]
cmp eax, 0xfffffffd
je 0x405037
cmp eax, ebx
je 0x405033
mov dword [eax], ebx
mov edx, dword [esp + 0x54]
mov eax, dword [edx + 4]
mov dword [esp + 0x54], eax
cmp eax, ebx
jne 0x405022
mov dword [esp + 0x54], ebx
lea ecx, [esp + 0x30]
call fcn.0045e350
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x48]
cmp eax, ebx
je 0x405055
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 0x405066
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.00410980
cmp dword [esp + 0x34], ebx
jne 0x404de0
sub esp, 0x20
mov edx, esp
mov dword [esp + 0x34], esp
push edx
mov edi, 0x4f65e0
call fcn.004064c0
mov ecx, dword [esp + 0x3c]
call fcn.00443a50
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.00460790
add esp, 0x130
ret