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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x5acbb2
push eax
mov dword fs:[0], esp
sub esp, 0xd4
push ebx
mov ebx, dword [esp + 0xe8]
push ebp
push esi
mov esi, ecx
cmp ebx, dword [esi + 8]
push edi
jge 0x50d149
mov edi, dword [esi + 0x10]
xor ebp, ebp
cmp edi, ebp
jne 0x50d09d
mov edi, dword [esi + 0xc]
mov eax, dword [esi + 0xc]
add eax, edi
cmp eax, ebp
jl 0x50d284
lea ecx, [eax*8]
push ecx
call fcn.00571a12
mov edx, dword [esi]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 4]
add esp, 4
cmp edx, eax
jg 0x50d11c
mov ebp, dword [esi + 8]
mov ebx, dword [esp + 0x10]
mov eax, edx
sub eax, ebp
lea ecx, [eax + edi]
lea ecx, [ebx + ecx*8]
mov ebx, dword [ecx]
mov dword [esp + 0x14], ebx
mov ebx, dword [ecx + 4]
mov dword [esp + 0x18], ebx
mov ebx, dword [esi + 0x20]
mov ebp, dword [ebx + eax*8]
mov dword [ecx], ebp
mov eax, dword [ebx + eax*8 + 4]
mov dword [ecx + 4], eax
mov ebx, dword [esi + 8]
mov eax, dword [esi + 0x20]
mov ecx, edx
sub ecx, ebx
mov ebx, dword [esp + 0x14]
mov dword [eax + ecx*8], ebx
mov ebx, dword [esp + 0x18]
mov dword [eax + ecx*8 + 4], ebx
mov eax, dword [esi + 4]
inc edx
cmp edx, eax
jle 0x50d0c7
mov ebx, dword [esp + 0xf4]
mov eax, dword [esi + 0x20]
push eax
call fcn.00571a0d
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 8]
sub edx, edi
mov dword [esi + 0x20], ecx
mov ecx, dword [esi + 0xc]
add ecx, edi
mov eax, edx
add esp, 4
cmp ebx, eax
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
jl 0x50d091
mov eax, dword [esi + 0xc]
add eax, dword [esi + 8]
cmp ebx, eax
jl 0x50d204
mov ebp, dword [esi + 0x10]
test ebp, ebp
jne 0x50d161
mov ebp, dword [esi + 0xc]
mov ecx, dword [esi + 0xc]
lea eax, [ecx + ebp]
test eax, eax
mov dword [esp + 0x10], ebp
jl 0x50d399
lea edx, [eax*8]
push edx
call fcn.00571a12
mov ecx, dword [esi]
mov edi, eax
mov eax, dword [esi + 4]
add esp, 4
cmp ecx, eax
jg 0x50d1de
mov edi, edi
mov edx, dword [esi + 8]
mov eax, ecx
sub eax, edx
shl eax, 3
mov ebx, dword [eax + edi + 4]
mov edx, dword [eax + edi]
mov dword [esp + 0x18], ebx
mov ebx, dword [esi + 0x20]
mov ebp, dword [eax + ebx]
mov dword [eax + edi], ebp
mov ebx, dword [eax + ebx + 4]
mov dword [eax + edi + 4], ebx
mov ebx, dword [esi + 8]
mov eax, ecx
sub eax, ebx
mov ebx, dword [esi + 0x20]
mov dword [ebx + eax*8], edx
mov edx, dword [esp + 0x18]
mov dword [ebx + eax*8 + 4], edx
mov eax, dword [esi + 4]
inc ecx
cmp ecx, eax
jle 0x50d190
mov ebx, dword [esp + 0xf4]
mov ebp, dword [esp + 0x10]
mov eax, dword [esi + 0x20]
push eax
call fcn.00571a0d
mov dword [esi + 0x20], edi
mov edi, dword [esi + 0xc]
add edi, ebp
mov dword [esi + 0xc], edi
mov edx, dword [esi + 8]
mov ecx, edi
add ecx, edx
add esp, 4
cmp ebx, ecx
jge 0x50d157
cmp ebx, dword [esi]
jge 0x50d22f
mov edx, dword [esi]
mov cl, byte [esi + 0x14]
dec edx
test cl, cl
mov dword [esi], edx
mov eax, edx
je 0x50d22b
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x18]
sub eax, ecx
mov ecx, dword [esi + 0x20]
mov dword [ecx + eax*8], edx
mov edx, dword [esi + 0x1c]
mov dword [ecx + eax*8 + 4], edx
cmp ebx, dword [esi]
jl 0x50d208
cmp ebx, dword [esi + 4]
jle 0x50d25e
mov edx, dword [esi + 4]
mov cl, byte [esi + 0x14]
inc edx
test cl, cl
mov dword [esi + 4], edx
mov eax, edx
je 0x50d259
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x18]
sub eax, ecx
mov ecx, dword [esi + 0x20]
mov dword [ecx + eax*8], edx
mov edx, dword [esi + 0x1c]
mov dword [ecx + eax*8 + 4], edx
cmp ebx, dword [esi + 4]
jg 0x50d234
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0xe4]
sub ebx, eax
mov eax, dword [esi + 0x20]
pop edi
pop esi
pop ebp
lea eax, [eax + ebx*8]
pop ebx
mov dword fs:[0], ecx
add esp, 0xe0
ret 4
mov ebx, 0xf
push ebx
push str.spaceextend_0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], ebp
mov byte [esp + 0x60], 0
call fcn.00403280
mov dword [esp + 0xec], ebp
push 6
push str.extend
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebp
mov byte [esp + 0x28], 0
call fcn.00403280
mov byte [esp + 0xec], 1
push 5
push str.space
lea ecx, [esp + 0x94]
mov dword [esp + 0xac], ebx
mov dword [esp + 0xa8], ebp
mov byte [esp + 0x98], 0
call fcn.00403280
mov byte [esp + 0xec], 2
push 0x10
push str.assertion_failed
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], ebp
mov byte [esp + 0x44], 0
call fcn.00403280
mov byte [esp + 0xec], 3
push 0x1d
push str.c:projects_tibiaContainer.h
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x8c], ebp
mov byte [esp + 0x7c], 0
call fcn.00403280
mov byte [esp + 0xec], 4
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x54]
push edx
push edi
lea eax, [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0x9c]
push edx
lea eax, [esp + 0x4c]
push eax
push 0x1c1
lea ecx, [esp + 0x8c]
push ecx
lea ecx, [esp + 0xc8]
call fcn.0054fb40
push 0x5e02c8
lea edx, [esp + 0xac]
push edx
call fcn.00560081
mov ebx, 0xf
push ebx
xor edi, edi
push str.spaceextend_0
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x8c], edi
mov byte [esp + 0x7c], 0
call fcn.00403280
mov dword [esp + 0xec], 5
push 6
push str.extend
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], edi
mov byte [esp + 0x44], 0
call fcn.00403280
mov byte [esp + 0xec], 6
push 5
push str.space
lea ecx, [esp + 0x94]
mov dword [esp + 0xac], ebx
mov dword [esp + 0xa8], edi
mov byte [esp + 0x98], 0
call fcn.00403280
mov byte [esp + 0xec], 7
push 0x10
push str.assertion_failed
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], edi
mov byte [esp + 0x28], 0
call fcn.00403280
mov byte [esp + 0xec], 8
push 0x1d
push str.c:projects_tibiaContainer.h
lea ecx, [esp + 0x5c]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], edi
mov byte [esp + 0x60], 0
call fcn.00403280
mov byte [esp + 0xec], 9
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x70]
push edx
push ebp
lea eax, [esp + 0x40]
push eax
push ecx
lea edx, [esp + 0x9c]
push edx
lea eax, [esp + 0x30]
push eax
push 0x1cf
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0xc8]
call fcn.0054fb40
push 0x5e02c8
lea edx, [esp + 0xac]
push edx
call fcn.00560081
int3