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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x5adaa8
push eax
mov dword fs:[0], esp
sub esp, 0xdc
push ebx
push ebp
mov ebp, dword [esp + 0xf4]
push esi
mov esi, ecx
mov eax, dword [esi + 8]
xor ebx, ebx
cmp ebp, eax
push edi
jge 0x51e051
mov edi, dword [esi + 0x10]
cmp edi, ebx
jne 0x51df7f
mov edi, dword [esi + 0xc]
mov eax, dword [esi + 0xc]
add eax, edi
cmp eax, ebx
mov dword [esp + 0x10], edi
jl 0x51e1d5
lea ecx, [eax + eax*2]
shl ecx, 2
push ecx
call fcn.00571a12
mov edx, dword [esi]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 4]
add esp, 4
cmp edx, eax
jg 0x51e024
lea esp, [esp]
mov ecx, dword [esi + 8]
mov eax, edx
sub eax, ecx
lea ecx, [eax + edi]
mov edi, dword [esp + 0x14]
lea ecx, [ecx + ecx*2]
lea ecx, [edi + ecx*4]
mov ebp, ecx
mov edi, dword [ebp]
mov ebx, dword [ebp + 4]
mov ebp, dword [ebp + 8]
lea eax, [eax + eax*2]
mov dword [esp + 0xac], ebp
mov ebp, dword [esi + 0x24]
lea eax, [ebp + eax*4]
mov ebp, dword [eax]
mov dword [ecx], ebp
mov ebp, dword [eax + 4]
mov dword [ecx + 4], ebp
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov ebp, dword [esi + 8]
mov eax, edx
sub eax, ebp
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x24]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0xac]
mov dword [ecx], edi
mov edi, dword [esp + 0x10]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], eax
mov eax, dword [esi + 4]
inc edx
cmp edx, eax
jle 0x51dfb0
mov ebp, dword [esp + 0xfc]
xor ebx, ebx
mov eax, dword [esi + 0x24]
push eax
call fcn.00571a0d
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 8]
sub edx, edi
mov dword [esi + 0x24], ecx
mov ecx, dword [esi + 0xc]
add ecx, edi
mov eax, edx
add esp, 4
cmp ebp, eax
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
jl 0x51df75
mov eax, dword [esi + 0xc]
add eax, dword [esi + 8]
cmp ebp, eax
jl 0x51e135
nop
mov edi, dword [esi + 0x10]
cmp edi, ebx
jne 0x51e06a
mov edi, dword [esi + 0xc]
mov ecx, dword [esi + 0xc]
lea eax, [edi + ecx]
cmp eax, ebx
mov dword [esp + 0x14], edi
jl 0x51e2e5
lea edx, [eax + eax*2]
shl edx, 2
push edx
call fcn.00571a12
mov edx, dword [esi]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 4]
add esp, 4
cmp edx, eax
jg 0x51e10f
jmp 0x51e0a0
mov edi, dword [esi + 8]
mov ecx, dword [esp + 0x10]
mov eax, edx
sub eax, edi
lea eax, [eax + eax*2]
shl eax, 2
add ecx, eax
mov ebp, ecx
mov edi, dword [ebp]
mov ebx, dword [ebp + 4]
mov ebp, dword [ebp + 8]
mov dword [esp + 0xac], ebp
mov ebp, dword [esi + 0x24]
add ebp, eax
mov eax, dword [ebp]
mov dword [ecx], eax
mov eax, dword [ebp + 4]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 8], eax
mov ebp, dword [esi + 8]
mov eax, edx
sub eax, ebp
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x24]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0xac]
mov dword [ecx], edi
mov dword [ecx + 4], ebx
mov dword [ecx + 8], eax
mov eax, dword [esi + 4]
inc edx
cmp edx, eax
jle 0x51e0a0
mov ebp, dword [esp + 0xfc]
mov edi, dword [esp + 0x14]
xor ebx, ebx
mov ecx, dword [esi + 0x24]
push ecx
call fcn.00571a0d
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
add eax, edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x24], edx
add eax, dword [esi + 8]
add esp, 4
cmp ebp, eax
jge 0x51e060
cmp ebp, dword [esi]
jge 0x51e171
lea esp, [esp]
mov edx, dword [esi]
mov cl, byte [esi + 0x14]
dec edx
cmp cl, bl
mov dword [esi], edx
mov eax, edx
je 0x51e16d
sub eax, dword [esi + 8]
mov ecx, dword [esi + 0x24]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
lea edx, [esi + 0x18]
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov edx, dword [edx + 8]
mov dword [eax + 8], edx
cmp ebp, dword [esi]
jl 0x51e140
cmp ebp, dword [esi + 4]
jle 0x51e1aa
mov edx, dword [esi + 4]
mov cl, byte [esi + 0x14]
inc edx
cmp cl, bl
mov dword [esi + 4], edx
mov eax, edx
je 0x51e1a5
sub eax, dword [esi + 8]
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x24]
lea edx, [eax + edx*4]
lea ecx, [esi + 0x18]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
cmp ebp, dword [esi + 4]
jg 0x51e176
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0xec]
sub ebp, eax
mov eax, ebp
pop edi
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x24]
pop esi
pop ebp
lea eax, [eax + edx*4]
pop ebx
mov dword fs:[0], ecx
add esp, 0xe8
ret 4
mov ebp, 0xf
push ebp
push str.spaceextend_0
lea ecx, [esp + 0x90]
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
call fcn.00403280
mov dword [esp + 0xf4], ebx
push 6
push str.extend
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.00403280
mov byte [esp + 0xf4], 1
push 5
push str.space
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.00403280
mov byte [esp + 0xf4], 2
push 0x10
push str.assertion_failed
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.00403280
mov byte [esp + 0xf4], 3
push 0x1d
push str.c:projects_tibiaContainer.h
lea ecx, [esp + 0x74]
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
call fcn.00403280
mov byte [esp + 0xf4], 4
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x88]
push edx
push edi
lea eax, [esp + 0x20]
push eax
push ecx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x64]
push eax
push 0x1c1
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0xd0]
call fcn.0054fb40
push 0x5e02c8
lea edx, [esp + 0xb4]
push edx
call fcn.00560081
mov ebp, 0xf
push ebp
push str.spaceextend_0
lea ecx, [esp + 0x74]
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
call fcn.00403280
mov dword [esp + 0xf4], 5
push 6
push str.extend
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.00403280
mov byte [esp + 0xf4], 6
push 5
push str.space
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.00403280
mov byte [esp + 0xf4], 7
push 0x10
push str.assertion_failed
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.00403280
mov byte [esp + 0xf4], 8
push 0x1d
push str.c:projects_tibiaContainer.h
lea ecx, [esp + 0x90]
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
call fcn.00403280
mov byte [esp + 0xf4], 9
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x6c]
push ecx
push edi
lea edx, [esp + 0x58]
push edx
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0x1cf
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0xd0]
call fcn.0054fb40
push 0x5e02c8
lea ecx, [esp + 0xb4]
push ecx
call fcn.00560081
int3