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

Disassembly:
push 0xffffffffffffffff
push 0x4e2962
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x5114a8]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5114a8]
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 0x404dd0
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 0x405030
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.00461c40
add esp, 0x10
lea ecx, [esp + 0x100]
push ecx
lea ecx, [esp + 0x58]
call fcn.00401f00
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 0x404e65
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.00401fb0
mov byte [esp + 0x160], 1
call fcn.004114c0
cmp eax, 0xffffffff
jne 0x404f23
mov eax, dword [esp + 0x18]
inc eax
push eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x78]
push 0x4f460c
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.00404010
add esp, 0x84
cmp dword [esp + 0x18], 5
jle 0x404fcf
sub esp, 0x84
mov ecx, esp
mov dword [esp + 0x98], esp
push 0xffffffffffffffff
push 0x4f462c
call dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_]
call fcn.00404010
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
add esp, 0x84
call eax
jmp 0x404fcf
cmp eax, 2
jne 0x404f61
sub esp, 0x84
mov ecx, esp
mov dword [esp + 0x98], esp
push 0xffffffffffffffff
push 0x4f4660
call dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_]
call fcn.00404010
mov ecx, dword [esp + 0xa4]
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
add esp, 0x84
call eax
jmp 0x404fcf
cmp eax, ebx
jne 0x404f9e
sub esp, 0x84
mov ecx, esp
mov dword [esp + 0x98], esp
push 0xffffffffffffffff
push 0x4f4678
call dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_]
call fcn.00404010
mov ecx, dword [esp + 0xa4]
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
add esp, 0x84
call eax
jmp 0x404fcf
cmp dword [esp + 0x18], ebx
je 0x404fcb
sub esp, 0x84
mov ecx, esp
mov dword [esp + 0x98], esp
push 0xffffffffffffffff
push 0x4f4688
call dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_]
call fcn.00404010
add esp, 0x84
mov dword [esp + 0x18], ebx
mov byte [esp + 0x140], bl
cmp dword [esp + 0x70], 0x10
jb 0x404fea
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0045f220
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.0045cad0
mov eax, dword [esp + 0x54]
cmp eax, 0xfffffffd
je 0x405027
cmp eax, ebx
je 0x405023
mov dword [eax], ebx
mov edx, dword [esp + 0x54]
mov eax, dword [edx + 4]
mov dword [esp + 0x54], eax
cmp eax, ebx
jne 0x405012
mov dword [esp + 0x54], ebx
lea ecx, [esp + 0x30]
call fcn.0045cb10
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x48]
cmp eax, ebx
je 0x405045
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 0x405056
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.0040f980
cmp dword [esp + 0x34], ebx
jne 0x404dd0
sub esp, 0x20
mov edx, esp
mov dword [esp + 0x34], esp
push edx
mov edi, 0x4f45d0
call fcn.00406490
mov ecx, dword [esp + 0x3c]
call fcn.00442380
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.0045ef20
add esp, 0x130
ret