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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5acc2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x168
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
cmp eax, dword [ebx + 8]
push esi
push edi
jge 0x50db18
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x50da42
mov esi, dword [ebx + 0xc]
mov dword [esp + 0xc], esi
jmp 0x50da48
mov dword [esp + 0xc], eax
mov esi, eax
mov eax, dword [ebx + 0xc]
add eax, esi
js 0x50db47
imul eax, eax, 0x8c
push eax
call fcn.00571a12
mov edx, dword [ebx]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 4]
add esp, 4
cmp edx, eax
jg 0x50dae2
nop
mov edi, dword [ebx + 8]
mov eax, edx
sub eax, edi
lea ecx, [eax + esi]
mov esi, dword [esp + 0x10]
imul ecx, ecx, 0x8c
add esi, ecx
mov dword [esp + 0x14], esi
mov ecx, 0x23
lea edi, [esp + 0xe0]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0xa4]
mov edi, dword [esp + 0x14]
mov esi, eax
imul esi, esi, 0x8c
add esi, ecx
mov ecx, 0x23
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 8]
mov esi, dword [ebx + 0xa4]
mov edi, edx
sub edi, eax
imul edi, edi, 0x8c
add edi, esi
mov ecx, 0x23
lea esi, [esp + 0xe0]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 4]
mov esi, dword [esp + 0xc]
inc edx
cmp edx, eax
jle 0x50da70
mov eax, dword [ebx + 0xa4]
push eax
call fcn.00571a0d
mov edx, dword [esp + 0x14]
mov edi, dword [ebx + 8]
mov eax, dword [ebp + 8]
sub edi, esi
mov dword [ebx + 0xa4], edx
mov edx, dword [ebx + 0xc]
add edx, esi
mov ecx, edi
add esp, 4
cmp eax, ecx
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edx
jl 0x50da32
mov edx, dword [ebx + 0xc]
add edx, dword [ebx + 8]
cmp eax, edx
jl 0x50dd32
jmp 0x50db30
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x50dc6a
mov esi, dword [ebx + 0xc]
mov dword [esp + 0xc], esi
jmp 0x50dc70
mov edi, 0xf
push edi
push str.spaceextend_0
lea ecx, [esp + 0x90]
mov dword [esp + 0xa8], edi
mov dword [esp + 0xa4], 0
mov byte [esp + 0x94], 0
call fcn.00403280
xor eax, eax
mov dword [esp + 0x17c], eax
push 6
push str.extend
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], eax
mov byte [esp + 0x24], al
call fcn.00403280
mov byte [esp + 0x17c], 1
push 5
push str.space
lea ecx, [esp + 0x74]
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], 0
mov byte [esp + 0x78], 0
call fcn.00403280
mov byte [esp + 0x17c], 2
push 0x10
push str.assertion_failed
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
call fcn.00403280
mov byte [esp + 0x17c], 3
push 0x1d
push str.c:projects_tibiaContainer.h
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
call fcn.00403280
mov byte [esp + 0x17c], 4
mov eax, dword [ebx + 0xc]
lea ecx, [esp + 0x88]
push ecx
push esi
lea edx, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x48]
push edx
push 0x1c1
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0xc4]
call fcn.0054fb40
push 0x5e02c8
lea ecx, [esp + 0xa8]
push ecx
call fcn.00560081
mov dword [esp + 0xc], eax
mov esi, eax
mov eax, dword [ebx + 0xc]
add eax, esi
js 0x50ddcc
imul eax, eax, 0x8c
push eax
call fcn.00571a12
mov edx, dword [ebx]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 4]
add esp, 4
cmp edx, eax
jg 0x50dcff
mov esi, dword [ebx + 8]
mov ecx, dword [esp + 0x10]
mov eax, edx
sub eax, esi
imul eax, eax, 0x8c
lea esi, [eax + ecx]
mov dword [esp + 0x14], esi
mov ecx, 0x23
lea edi, [esp + 0xe0]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebx + 0xa4]
mov edi, dword [esp + 0x14]
add esi, eax
mov ecx, 0x23
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 8]
mov esi, dword [ebx + 0xa4]
mov edi, edx
sub edi, eax
imul edi, edi, 0x8c
add edi, esi
mov ecx, 0x23
lea esi, [esp + 0xe0]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 4]
inc edx
cmp edx, eax
jle 0x50dc97
mov esi, dword [esp + 0xc]
mov edx, dword [ebx + 0xa4]
push edx
call fcn.00571a0d
mov edi, dword [ebx + 0xc]
mov eax, dword [esp + 0x14]
add edi, esi
mov dword [ebx + 0xa4], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0xc], edi
mov edx, dword [ebx + 8]
mov ecx, edi
add ecx, edx
add esp, 4
cmp eax, ecx
jge 0x50db30
cmp eax, dword [ebx]
jge 0x50dd65
mov edx, dword [ebx]
mov cl, byte [ebx + 0x14]
dec edx
test cl, cl
mov dword [ebx], edx
mov edi, edx
je 0x50dd61
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 0xa4]
sub edi, edx
imul edi, edi, 0x8c
add edi, ecx
lea esi, [ebx + 0x18]
mov ecx, 0x23
rep movsd dword es:[edi], dword [esi]
cmp eax, dword [ebx]
jl 0x50dd36
cmp eax, dword [ebx + 4]
jle 0x50dda2
lea ebx, [ebx]
mov edx, dword [ebx + 4]
mov cl, byte [ebx + 0x14]
inc edx
test cl, cl
mov dword [ebx + 4], edx
mov edi, edx
je 0x50dd9d
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 0xa4]
sub edi, edx
imul edi, edi, 0x8c
add edi, ecx
lea esi, [ebx + 0x18]
mov ecx, 0x23
rep movsd dword es:[edi], dword [esi]
cmp eax, dword [ebx + 4]
jg 0x50dd70
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 0xa4]
sub eax, edx
imul eax, eax, 0x8c
pop edi
add eax, ecx
mov ecx, dword [esp + 0x170]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, 0xf
push edi
push str.spaceextend_0
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
call fcn.00403280
mov dword [esp + 0x17c], 5
push 6
push str.extend
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
call fcn.00403280
mov byte [esp + 0x17c], 6
push 5
push str.space
lea ecx, [esp + 0x74]
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], 0
mov byte [esp + 0x78], 0
call fcn.00403280
mov byte [esp + 0x17c], 7
push 0x10
push str.assertion_failed
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
call fcn.00403280
mov byte [esp + 0x17c], 8
push 0x1d
push str.c:projects_tibiaContainer.h
lea ecx, [esp + 0x90]
mov dword [esp + 0xa8], edi
mov dword [esp + 0xa4], 0
mov byte [esp + 0x94], 0
call fcn.00403280
mov byte [esp + 0x17c], 9
mov ecx, dword [ebx + 0xc]
lea edx, [esp + 0x50]
push edx
push esi
lea eax, [esp + 0x3c]
push eax
push ecx
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x2c]
push eax
push 0x1cf
lea ecx, [esp + 0xa4]
push ecx
lea ecx, [esp + 0xc4]
call fcn.0054fb40
push 0x5e02c8
lea edx, [esp + 0xa8]
push edx
call fcn.00560081
int3