Function at 0x5266dc
Capabilities:
Write file on windows

Disassembly:
push 0xb8
mov eax, 0x603155
call fcn.005cb937
mov edi, ecx
mov dword [ebp - 0x7c], edi
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x6c1b44], eax
je 0x5267ef
cmp dword [edi + 0x28], eax
je 0x5267ef
call dword [0x63441c]
push 0xffffffffffffffff
push dword [0x6c4ddc]
mov dword [ebp - 0x6c], eax
call dword [0x6343c4]
lea eax, [ebp - 0x6c]
push eax
lea ebx, [ebp - 0x74]
call fcn.00526e28
mov eax, dword [0x6c4db4]
mov dword [ebp - 0x80], eax
mov eax, dword [0x6c4d9c]
lea edi, [ebp - 0x84]
mov esi, ebx
mov dword [ebp - 0x84], eax
call fcn.00584150
test al, al
jne 0x5267e0
call fcn.005469a8
mov ecx, eax
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0x10]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
je 0x5267e0
call fcn.005469a8
add eax, 4
call fcn.00526e90
mov ecx, dword [ebp - 0x7c]
add ecx, 0x14
push ecx
mov ecx, eax
call fcn.00404b75
test eax, eax
jne 0x5267e0
call fcn.005469a8
mov esi, eax
mov ecx, dword [esi + 0x14]
add esi, 4
mov eax, ecx
sub eax, dword [esi + 0xc]
push 0x1c
cdq
pop edi
idiv edi
test eax, eax
je 0x5267b4
push ecx
lea eax, [ecx - 0x1c]
call fcn.0040bdf8
add dword [esi + 0x10], 0xffffffe4
lea esi, [ebp - 0x74]
call fcn.005469a8
mov ecx, eax
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0x10]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
jne 0x5267e0
push dword [ebp - 0x70]
lea eax, [ebp - 0x8c]
push dword [ebp - 0x74]
push eax
call fcn.00526b9e
push dword [0x6c4ddc]
call dword [0x6343c0]
mov edi, dword [ebp - 0x7c]
lea esi, [edi + 8]
mov dword [ebp - 0x70], esi
call fcn.0053b709
mov dword [ebp - 0x6c], eax
mov eax, dword [0x6bb7f8]
test eax, eax
jle 0x526a60
cmp dword [0x6c4df4], 0
je 0x526a60
cmp dword [ebp - 0x6c], eax
jle 0x526a60
lea ebx, [edi + 0x14]
push str.AccountSession::Action
mov ecx, ebx
mov dword [ebp - 0x80], ebx
call fcn.00404ae8
test eax, eax
je 0x526a60
push 0xffffffffffffffff
push dword [0x6c4ddc]
call dword [0x6343c4]
push str.DeadLock.txt
lea eax, [ebp - 0x4c]
push 0x6c4de0
push eax
call fcn.00404922
add esp, 0xc
push 0
mov byte [ebp - 4], 1
call fcn.005c337e
cmp dword [ebx + 0x18], 0x10
pop ecx
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], edx
jb 0x526881
mov eax, dword [ebx + 4]
jmp 0x526884
lea eax, [ebx + 4]
push eax
push dword [ebp - 0x6c]
mov ecx, 0x800
push str.__d_ms___s
lea edx, [ebp - 0x68]
call fcn.0054aa9f
add esp, 0xc
lea eax, [ebp - 0x8c]
push eax
mov esi, 0x65d794
lea edi, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00404cf1
mov byte [ebp - 4], 3
cmp dword [ebp + 0x20], 0x10
mov edx, dword [ebp + 0xc]
jae 0x5268c5
lea edx, [ebp + 0xc]
cmp dword [ebp - 0x50], 0x10
mov ecx, dword [ebp - 0x64]
jae 0x5268d1
lea ecx, [ebp - 0x64]
mov eax, dword [eax]
push edx
push ecx
push eax
push str.HOLDtime___s___s___s__n
mov ecx, 0x400
lea edx, [ebp - 0x30]
call fcn.0054aa9f
add esp, 0x10
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x6c]
add ecx, 0xfffffff0
call fcn.00405172
push str.MessagePersistDbManager
mov ecx, ebx
call fcn.00404ae8
mov esi, 0x641890
test eax, eax
jne 0x526978
cmp dword [0x6c5318], eax
jne 0x526978
push 0x65d848
lea ecx, [ebp - 0xc4]
mov dword [0x6c5318], 1
call fcn.0040518c
push esi
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 6
call fcn.0040518c
lea eax, [ebp - 0x30]
push eax
lea ebx, [ebp - 0xc4]
lea edi, [ebp - 0xa8]
mov byte [ebp - 4], 7
call fcn.0054aba1
pop ecx
push 0
push 1
mov ecx, edi
call fcn.004055c2
push 0
push 1
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.004055c2
mov ebx, dword [ebp - 0x80]
push str.MessagePersistDb
mov ecx, ebx
call fcn.00404ae8
test eax, eax
jne 0x5269e0
cmp dword [0x6c5318], eax
jne 0x5269e0
push 0x65d848
lea ecx, [ebp - 0xa8]
call fcn.0040518c
push esi
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 8
call fcn.0040518c
lea eax, [ebp - 0x30]
push eax
lea ebx, [ebp - 0xa8]
lea edi, [ebp - 0xc4]
mov byte [ebp - 4], 9
call fcn.0054aba1
pop ecx
push 0
push 1
mov ecx, edi
call fcn.004055c2
push 0
push 1
mov ecx, ebx
call fcn.004055c2
mov eax, dword [ebp - 0x48]
xor esi, esi
cmp dword [ebp - 0x34], 0x10
mov dword [ebp - 0x78], esi
jae 0x5269f1
lea eax, [ebp - 0x48]
push 0x65d7b4
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.005c8fa1
add esp, 0xc
cmp dword [ebp - 0x78], esi
je 0x526a2d
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x526a14
lea eax, [ebp - 0x2c]
push dword [ebp - 0x78]
push dword [ebp - 0x1c]
push 1
push eax
call fcn.005c9156
push dword [ebp - 0x78]
call fcn.005c924f
add esp, 0x14
push dword [0x6c4ddc]
call dword [0x6343c0]
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.004055c2
push esi
push 1
lea ecx, [ebp - 0x68]
call fcn.004055c2
push esi
push 1
lea ecx, [ebp - 0x4c]
call fcn.004055c2
mov edi, dword [ebp - 0x7c]
mov esi, dword [ebp - 0x70]
push dword [edi]
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
call dword [0x6343c0]
dec dword [edi + 4]
jns 0x526a77
mov dword [edi + 4], ebx
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.004055c2
call fcn.005cb9ba
ret 0x1c