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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x87c
mov ecx, 0x4887c0
push ebp
push eax
call fcn.00412990
mov ebp, eax
test ebp, ebp
je 0x405af4
cmp byte [ebp + 0x31], 1
jb 0x405af4
mov eax, dword [ebp + 0x574]
test eax, eax
jne 0x405af4
push ebx
push esi
push edi
mov ecx, 0x16
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
lea ecx, [ebp + 0x578]
lea edx, [ebp + 0x492]
mov dword [esp + 0x10], 0x58
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
lea ebx, [esp + 0xe4]
lea esi, [ebp + 0x32]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov cl, byte [eax + ebp + 0x442]
test cl, cl
je 0x4059a2
xor eax, eax
mov edx, esi
mov dword [esp + 0x24], eax
push esi
mov dword [esp + 0x2c], eax
push str.guild_member_send__s
mov word [esp + 0x34], ax
mov eax, dword [edx]
push 0x48d640
mov ecx, dword [edx + 4]
mov dx, word [edx + 8]
mov word [esp + 0x38], dx
mov edx, dword [esp + 0x28]
mov di, word [edx]
mov edx, dword [esp + 0x24]
mov dl, byte [edx]
mov byte [esp + 0x3b], dl
mov edx, ebx
add ebx, 0xe
mov dword [edx], eax
mov eax, dword [esp + 0x38]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov eax, dword [esp + 0x20]
mov word [edx + 0xc], di
mov edx, dword [esp + 0x1c]
add edx, 0xe
inc eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
call dword [sym.imp.LogProc.dll_public:_void___cdecl_CLogProc::Add_char__]
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
inc eax
add ecx, 2
add edi, 4
add esi, 0xd
cmp eax, 0x50
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edi
jl 0x405926
mov eax, dword [esp + 0x10]
mov dl, byte [esp + 0x14]
mov ecx, eax
mov byte [esp + 0x36], al
mov eax, dword [ebp]
lea esi, [ebp + 0x11]
shr ecx, 8
mov byte [esp + 0x35], cl
mov ecx, dword [ebp + 0x534]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x36]
mov ecx, 8
lea edi, [esp + 0x50]
mov byte [esp + 0x34], 0xc2
mov byte [esp + 0x37], 0x36
mov byte [esp + 0x89], dl
mov edx, dword [ebp + 0x32]
rep movsd dword es:[edi], dword [esi]
mov cx, word [ebp + 0x3a]
mov dword [esp + 0x49], eax
mov eax, dword [ebp + 0x6bc]
mov dword [esp + 0x45], edx
mov dl, byte [ebp + 0x6b8]
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0x6c0]
mov word [esp + 0x4d], cx
test eax, eax
mov byte [esp + 0x74], dl
mov dword [esp + 0x7c], eax
je 0x405a74
push eax
mov ecx, 0x4887c0
call fcn.00412aa0
test eax, eax
je 0x405a6c
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edx
jmp 0x405a74
mov byte [esp + 0x80], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 4]
mov dword [esp + 0x40], ecx
mov ecx, 0x16
lea esi, [esp + 0x34]
lea edi, [esp + 0x8c]
mov dword [esp + 0x3c], eax
rep movsd dword es:[edi], dword [esi]
mov esi, 0x48e354
mov eax, dword [esi - 0x10]
test eax, eax
je 0x405ac1
cmp dword [esi], 1
jne 0x405ac1
mov edx, dword [esp + 0x10]
mov ecx, dword [esi - 8]
lea eax, [esp + 0x8c]
push edx
push eax
push ecx
mov ecx, dword [0x48ff68]
call fcn.0040e260
add esi, 0x48
cmp esi, 0x48ff74
jl 0x405a99
mov edx, dword [esp + 0x894]
mov dword [ebp + 0x574], 1
push edx
push 0x46bd14
push 0x48d640
call dword [sym.imp.LogProc.dll_public:_void___cdecl_CLogProc::AddTD_char__]
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x87c
ret