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

Disassembly:
sub esp, 0x154
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x18], 0xf423f
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
lea edi, [esp + 0x104]
mov ebp, 4
push ebx
push ebx
mov ecx, edi
call fcn.0042ce60
add edi, 0x18
dec ebp
jne 0x4f05a6
mov eax, dword [esi + 0x5650]
imul eax, dword [esi + 0x564c]
lea ebp, [eax*4]
push ebp
call fcn.0076d5a7
mov edi, eax
push ebp
mov dword [esp + 0x6c], edi
call fcn.0076d5a7
push ebp
mov dword [esp + 0x50], eax
call fcn.0076d5a7
mov ecx, ebp
mov dword [esp + 0x4c], eax
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 0xc
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x44]
mov ecx, ebp
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x40]
mov ecx, ebp
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x16c]
cmp eax, ebx
je 0x4f0720
mov ecx, dword [eax + 0x10]
xor ebx, ebx
test ecx, ecx
jle 0x4f0720
mov ebp, dword [esp + 0x16c]
lea edi, [ebx*4]
sub esp, 8
mov eax, dword [ebp + 4]
sub esp, 8
add eax, edi
mov cx, word [eax]
mov ax, word [eax + 2]
sub cx, word [esi + 0x5640]
sub ax, word [esi + 0x5642]
movsx ecx, cx
movsx eax, ax
mov dword [esp + 0x78], ecx
fild dword [esp + 0x78]
neg eax
mov dword [esp + 0x34], eax
fstp qword [esp + 8]
fild dword [esp + 0x34]
fstp qword [esp]
call fcn.004ba120
fsub qword [0x786630]
add esp, 0x10
fmul qword [0x786628]
call fcn.0076a6b0
mov ebp, dword [ebp + 4]
mov word [esp + 0x28], ax
mov eax, dword [esp + 0x28]
add ebp, edi
shr eax, 0xd
inc eax
shr eax, 1
and eax, 3
lea edx, [eax + eax*2]
mov eax, dword [esp + edx*8 + 0x10c]
mov ecx, dword [esp + edx*8 + 0x114]
lea edi, [esp + edx*8 + 0x104]
cmp ecx, eax
jl 0x4f06fd
mov cl, byte [edi + 0xd]
test cl, cl
jne 0x4f06e6
test eax, eax
jne 0x4f070f
mov ecx, dword [edi + 0x14]
test ecx, ecx
jle 0x4f070f
mov edx, dword [edi]
add ecx, eax
push 0
push ecx
mov ecx, edi
call dword [edx + 8]
test al, al
je 0x4f070f
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 4]
lea ecx, [eax + 1]
mov dword [edi + 0x10], ecx
mov ecx, dword [ebp]
mov dword [edx + eax*4], ecx
mov edx, dword [esp + 0x16c]
inc ebx
cmp ebx, dword [edx + 0x10]
jl 0x4f0642
mov ecx, dword [esi + 0x78]
xor eax, eax
test ecx, ecx
mov dword [esp + 0xa4], ecx
mov dword [esp + 0x14], eax
jle 0x4f0872
mov ecx, dword [esi + 0x6c]
mov ebp, dword [ecx + eax*4]
lea eax, [esp + 0x68]
push eax
mov ecx, ebp
mov edx, dword [ebp]
call dword [edx + 0x1a0]
mov cx, word [eax]
mov ax, word [eax + 2]
sub cx, word [esi + 0x5640]
sub ax, word [esi + 0x5642]
test cx, cx
jne 0x4f0771
test ax, ax
je 0x4f085a
movsx ecx, cx
movsx eax, ax
mov dword [esp + 0xf4], ecx
sub esp, 8
fild dword [esp + 0xfc]
neg eax
mov dword [esp + 0x2c], eax
fstp qword [esp]
fild dword [esp + 0x2c]
sub esp, 8
fstp qword [esp]
call fcn.004ba120
fsub qword [0x786630]
add esp, 0x10
fmul qword [0x786628]
call fcn.0076a6b0
mov word [esp + 0x28], ax
mov edi, dword [esp + 0x28]
shr edi, 0xd
inc edi
mov ecx, ebp
shr edi, 1
and edi, 3
call fcn.004513f0
mov ecx, ebp
mov ebx, eax
call fcn.00451440
mov ecx, ebp
mov dword [esp + 0x10], eax
call fcn.00451490
mov edx, dword [esp + 0x10]
mov dword [esp + 0x20], eax
add eax, edx
add eax, ebx
test eax, eax
jle 0x4f085a
mov edx, dword [esp + edi*4 + 0x88]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + edi*4 + 0x48]
add edx, ebx
add ecx, eax
mov dword [esp + edi*4 + 0x88], edx
mov edx, dword [esp + edi*4 + 0x2c]
mov dword [esp + edi*4 + 0x48], ecx
mov ecx, dword [esp + 0x20]
lea edi, [esp + edi*4 + 0x2c]
add edx, ecx
mov ecx, esi
mov dword [edi], edx
mov edx, dword [esp + 0x64]
lea edi, [esi + 0x5644]
push edi
push edx
push ebx
push ebp
call fcn.004f03a0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x10]
push edi
push eax
push ecx
push ebp
mov ecx, esi
call fcn.004f03a0
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
push edi
push edx
push eax
push ebp
mov ecx, esi
call fcn.004f03a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xa4]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4f0738
mov edi, dword [esp + 0x60]
mov ebx, dword [esp + 0x18]
xor eax, eax
lea edx, [esp + 0x114]
mov ecx, dword [esp + eax*4 + 0x2c]
mov ebp, dword [esp + eax*4 + 0x48]
add ecx, ebp
mov ebp, dword [esp + eax*4 + 0x88]
add ecx, ebp
cmp ecx, ebx
mov dword [esp + eax*4 + 0xf4], ecx
jge 0x4f08b5
mov ebp, dword [esp + 0x16c]
test ebp, ebp
je 0x4f08b1
cmp dword [edx], 0
jle 0x4f08b5
mov ebx, ecx
mov edi, eax
inc eax
add edx, 0x18
cmp eax, 4
jl 0x4f0883
mov eax, dword [esp + edi*4 + 0x48]
mov ecx, dword [esp + edi*4 + 0x2c]
mov edx, dword [esp + edi*4 + 0x88]
xor ebp, ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ecx
mov eax, 0x3ea8f5c3
push ebp
push ebp
lea ecx, [esp + 0x78]
mov dword [esp + 0x68], edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0xac], edx
mov dword [esi + 0x15f84], eax
mov dword [esi + 0x15f80], eax
mov dword [esi + 0x15f7c], eax
call fcn.004f7d50
mov ebx, dword [esi + 0x78]
mov dword [esp + 0x70], vtable.DynamicVectorClass_class_BuildingTypeClass_const__.0
cmp ebx, ebp
mov dword [esp + 0x84], 0xa
mov dword [esp + 0x80], ebp
jle 0x4f09b0
mov ecx, dword [esp + 0x78]
mov edx, dword [esi + 0x6c]
mov edi, dword [edx + ebp*4]
mov eax, dword [edi + 0x418]
mov dl, byte [eax + 0x138a]
test dl, dl
jne 0x4f09ab
mov edx, dword [0x821b68]
cmp eax, dword [edx + 0x78c]
je 0x4f09ab
cmp dword [esp + 0x80], ecx
jl 0x4f0989
mov al, byte [esp + 0x7d]
test al, al
jne 0x4f096a
test ecx, ecx
jne 0x4f09ab
mov eax, dword [esp + 0x84]
test eax, eax
jle 0x4f09ab
add ecx, eax
mov eax, dword [esp + 0x70]
push 0
push ecx
lea ecx, [esp + 0x78]
call dword [eax + 8]
test al, al
je 0x4f09a7
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x74]
mov eax, ecx
inc ecx
mov dword [esp + 0x80], ecx
mov ecx, dword [edi + 0x418]
mov dword [edx + eax*4], ecx
mov ecx, dword [esp + 0x78]
inc ebp
cmp ebp, ebx
jl 0x4f0931
mov eax, dword [esp + 0x168]
mov ecx, dword [esi + 0x55f8]
shl eax, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0
mov ebx, dword [eax + ecx]
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [esp + 0x68], ebx
je 0x4f0a00
fild dword [esp + 0x18]
fstp dword [esp + 0x14]
fild dword [esp + 0xa4]
fdiv dword [esp + 0x14]
fild dword [esp + 0x20]
fdiv dword [esp + 0x14]
fild dword [esp + 0x10]
fdiv dword [esp + 0x14]
jmp 0x4f0a12
fld dword [0x785738]
fld dword [0x785738]
fld dword [0x785738]
fld dword [esi + 0x15f80]
fsub st(3)
lea edx, [esp + 0x70]
lea eax, [esp + 0xc4]
push edx
push eax
mov ecx, esi
fstp dword [esp + 0x28]
fld dword [esi + 0x15f7c]
fsub st(2)
fstp dword [esp + 0x1c]
fld dword [esi + 0x15f84]
fsub st(1)
fstp dword [esp + 0x20]
fstp st(0)
fstp st(0)
fstp st(0)
call fcn.004f1200
lea ecx, [esp + 0x70]
lea edx, [esp + 0xdc]
push ecx
push edx
mov ecx, esi
call fcn.004f13a0
lea eax, [esp + 0x70]
lea ecx, [esp + 0xac]
push eax
push ecx
mov ecx, esi
call fcn.004f1540
fld dword [esp + 0x20]
fcomp dword [esp + 0x14]
mov ecx, 2
mov edi, 1
fnstsw ax
test ah, 0x41
jne 0x4f0abb
fld dword [esp + 0x20]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x4f0abb
mov edx, dword [esp + 0x64]
lea ebp, [esp + 0xc4]
mov dword [esi + 0x15f44], edx
mov dword [esp + 0x18], 0
jmp 0x4f0af6
fld dword [esp + 0x14]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x4f0ae1
mov eax, dword [esp + 0x44]
lea ebp, [esp + 0xdc]
mov dword [esi + 0x15f44], eax
mov dword [esp + 0x18], edi
jmp 0x4f0af6
mov edx, dword [esp + 0x40]
lea ebp, [esp + 0xac]
mov dword [esi + 0x15f44], edx
mov dword [esp + 0x18], ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
cmp eax, edx
mov byte [esp + 0x1f], 1
jne 0x4f0b22
cmp dword [esp + 0xec], edx
jle 0x4f0b35
mov eax, dword [esp + 0x44]
lea ebp, [esp + 0xdc]
mov dword [esp + 0x18], edi
mov dword [esi + 0x15f44], eax
cmp dword [ebp + 0x10], edi
jne 0x4f0ccf
mov ecx, dword [ebp + 4]
mov edi, dword [ecx]
jmp 0x4f0e5e
cmp dword [esp + 0xbc], edx
jle 0x4f0b55
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x40]
lea ebp, [esp + 0xac]
mov dword [esi + 0x15f44], ecx
jmp 0x4f0b22
cmp dword [esp + 0xd4], edx
jle 0x4f0b6f
mov eax, dword [esp + 0x64]
lea ebp, [esp + 0xc4]
mov dword [esp + 0x18], edx
jmp 0x4f0b1c
mov byte [esp + 0x1f], 0
xor ebp, ebp
mov eax, dword [esp + 0x64]
push eax
call fcn.0076d2d5
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0076d2d5
mov edx, dword [esp + 0x48]
push edx
call fcn.0076d2d5
mov eax, dword [esp + 0xbc]
mov dword [esi + 0x15f44], ebp
add esp, 0xc
mov esi, vtable.VectorClass_class_BuildingTypeClass__.0
cmp eax, ebp
mov dword [esp + 0xac], esi
je 0x4f0bcf
mov cl, byte [esp + 0xb9]
test cl, cl
je 0x4f0bcf
push eax
call fcn.0076d2d5
add esp, 4
mov dword [esp + 0xb0], ebp
mov eax, dword [esp + 0xe0]
mov byte [esp + 0xb9], 0
cmp eax, ebp
mov dword [esp + 0xb4], ebp
mov dword [esp + 0xdc], esi
je 0x4f0c0b
mov cl, byte [esp + 0xe9]
test cl, cl
je 0x4f0c0b
push eax
call fcn.0076d2d5
add esp, 4
mov dword [esp + 0xe0], ebp
mov eax, dword [esp + 0xc8]
mov byte [esp + 0xe9], 0
cmp eax, ebp
mov dword [esp + 0xe4], ebp
mov dword [esp + 0xc4], esi
je 0x4f0c47
mov cl, byte [esp + 0xd1]
test cl, cl
je 0x4f0c47
push eax
call fcn.0076d2d5
add esp, 4
mov dword [esp + 0xc8], ebp
mov eax, dword [esp + 0x74]
mov byte [esp + 0xd1], 0
cmp eax, ebp
mov dword [esp + 0xcc], ebp
mov dword [esp + 0x70], vtable.VectorClass_class_BuildingTypeClass_const__.0
je 0x4f0c7b
mov cl, byte [esp + 0x7d]
test cl, cl
je 0x4f0c7b
push eax
call fcn.0076d2d5
add esp, 4
mov dword [esp + 0x74], ebp
mov byte [esp + 0x7d], 0
mov dword [esp + 0x78], ebp
lea esi, [esp + 0x168]
mov edi, 4
mov ebx, vtable.VectorClass_class_Cell_.0
mov eax, dword [esi - 0x18]
sub esi, 0x18
cmp eax, ebp
mov dword [esi - 4], ebx
je 0x4f0cb4
mov cl, byte [esi + 9]
test cl, cl
je 0x4f0cb4
push eax
call fcn.0076d2d5
add esp, 4
mov dword [esi], ebp
dec edi
mov byte [esi + 9], 0
mov dword [esi + 4], ebp
jne 0x4f0c95
mov al, byte [esp + 0x1f]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x154
ret 8
xor ebx, ebx
lea ecx, [esp + 0x88]
push ebx
push ebx
call fcn.004f8120
lea ecx, [esp + 0x88]
mov dword [esp + 0x88], 0x78dfd4
mov dword [esp + 0x9c], 0xa
mov dword [esp + 0x98], ebx
mov dword [esp + 0xa0], ebx
call dword [0x78dfe0]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], ebx
cmp eax, ebx
jle 0x4f0db3
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x14]
push esi
mov edi, dword [edx + eax*4]
mov ecx, edi
mov edx, dword [edi]
call dword [edx + 0x84]
mov ecx, eax
mov eax, 0x2710
cdq
idiv ecx
mov ebx, eax
mov eax, dword [esp + 0x18]
cmp eax, 2
jne 0x4f0d51
mov eax, dword [edi + 0x11e0]
jmp 0x4f0d66
cmp dword [esp + 0x18], 1
jne 0x4f0d60
mov eax, dword [edi + 0x11dc]
jmp 0x4f0d66
mov eax, dword [edi + 0x11d8]
lea edx, [esp + 0xa4]
add ebx, eax
push edx
lea ecx, [esp + 0x8c]
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], ebx
call fcn.004f77a0
mov edi, dword [esp + 0xa0]
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x10]
add edi, ebx
inc eax
mov dword [esp + 0xa0], edi
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4f0d1f
mov edi, 1
mov eax, dword [esp + 0xa0]
xor ebx, ebx
cmp eax, edi
jb 0x4f0e0c
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x4f0e0c
push eax
mov eax, dword [0xa255a0]
push edi
lea ecx, [eax + 0x218]
call fcn.0062fcf0
mov edi, dword [esp + 0x98]
mov ecx, dword [esp + 0x8c]
xor edx, edx
test edi, edi
jle 0x4f0e03
lea ebp, [ecx + 4]
add ebx, dword [ebp]
cmp ebx, eax
jae 0x4f0e07
inc edx
add ebp, 8
cmp edx, edi
jl 0x4f0df4
xor edi, edi
jmp 0x4f0e15
mov edi, dword [ecx + edx*8]
jmp 0x4f0e15
mov ecx, dword [esp + 0x8c]
xor edi, edi
test ecx, ecx
mov dword [esp + 0x88], vtable.VectorClass_class_DiscreteDistributionClass_class_BuildingTypeClass_::DistributionObject_class_BuildingTypeClass___.0
je 0x4f0e45
mov al, byte [esp + 0x95]
test al, al
je 0x4f0e45
test ecx, ecx
je 0x4f0e3a
push 3
call fcn.004f7c10
mov dword [esp + 0x8c], 0
mov ebx, dword [esp + 0x68]
mov byte [esp + 0x95], 0
mov dword [esp + 0x90], 0
xor edx, edx
cmp ebx, edx
jl 0x4f0e75
mov ecx, dword [0xa1dfec]
mov dword [esp + 0x28], edi
mov eax, dword [ecx + ebx*4]
mov dword [esp + 0x14], eax
jmp 0x4f0e7b
mov eax, edi
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x16c]
mov word [esp + 0x10], dx
cmp ecx, edx
mov word [esp + 0x12], dx
je 0x4f108b
xor edi, edi
lea ecx, [esp + 0x48]
push edi
push edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov byte [esp + 0x40], 0
mov dword [esp + 0x44], edi
call fcn.0042d4a0
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x48], vtable.DynamicVectorClass_class_Cell_.0
cmp eax, edi
mov dword [esp + 0x5c], 0xa
mov dword [esp + 0x58], edi
je 0x4f0ee7
mov cl, byte [esp + 0x55]
test cl, cl
je 0x4f0ee7
push eax
call fcn.0076d2d5
add esp, 4
mov dword [esp + 0x4c], edi
mov eax, dword [esp + 0x60]
mov byte [esp + 0x55], 0
mov dword [esp + 0x50], edi
lea eax, [eax + eax*2]
shl eax, 3
mov edx, dword [esp + eax + 0x114]
lea ecx, [esp + eax + 0x114]
cmp edx, edi
mov dword [esp + 0x68], ecx
jle 0x4f0f86
lea ebx, [esp + eax + 0x108]
mov edx, dword [ebx]
push 0xffffffffffffffff
push edi
mov ecx, esi
mov eax, dword [edx + edi*4]
lea edx, [esp + 0x28]
mov dword [esp + 0x28], eax
call fcn.004ef690
mov ecx, dword [esp + 0x30]
mov ebp, eax
mov eax, dword [esp + 0x34]
inc ecx
cmp ecx, eax
jle 0x4f0f54
test eax, eax
jne 0x4f0f46
mov eax, 0xa
push eax
lea ecx, [esp + 0x30]
call fcn.004f8010
test al, al
je 0x4f0f7d
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov dword [edx + eax*8], ebp
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
mov dword [edx + ecx*8 + 4], eax
mov eax, dword [esp + 0x30]
inc eax
mov byte [esp + 0x38], 0
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x68]
inc edi
cmp edi, dword [ecx]
jl 0x4f0f17
mov eax, dword [esp + 0x30]
xor ebp, ebp
xor ebx, ebx
cmp eax, ebp
jle 0x4f1010
mov cl, byte [esp + 0x38]
test cl, cl
jne 0x4f0fb8
mov edx, dword [esp + 0x2c]
push 0x4f80a0
push 8
push eax
push edx
call fcn.0076d2e0
add esp, 0x10
mov dword [esp + 0x3c], ebp
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x58]
lea edi, [eax + ebx*8 + 4]
mov eax, dword [esp + 0x50]
cmp ecx, eax
jl 0x4f0ff3
mov cl, byte [esp + 0x55]
test cl, cl
jne 0x4f0fd8
cmp eax, ebp
jne 0x4f1007
mov ecx, dword [esp + 0x5c]
cmp ecx, ebp
jle 0x4f1007
mov edx, dword [esp + 0x48]
add eax, ecx
push ebp
push eax
lea ecx, [esp + 0x50]
call dword [edx + 8]
test al, al
je 0x4f1007
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x4c]
mov eax, ecx
inc ecx
mov dword [esp + 0x58], ecx
mov ecx, dword [edi]
mov dword [edx + eax*4], ecx
mov eax, dword [esp + 0x30]
inc ebx
cmp ebx, eax
jl 0x4f0f92
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x16c]
mov ecx, dword [eax]
mov edx, dword [edi]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ecx
push eax
mov ecx, edi
call dword [edx + 0x10]
mov ecx, dword [edi + 0x10]
cmp eax, ecx
jge 0x4f104e
dec ecx
cmp eax, ecx
mov dword [edi + 0x10], ecx
jge 0x4f104e
mov ecx, dword [edi + 4]
inc eax
mov edx, dword [ecx + eax*4]
mov dword [ecx + eax*4 - 4], edx
mov ecx, dword [edi + 0x10]
cmp eax, ecx
jl 0x4f103c
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x48], vtable.VectorClass_class_Cell_.0
cmp eax, ebp
je 0x4f1073
mov cl, byte [esp + 0x55]
test cl, cl
je 0x4f1073
push eax
call fcn.0076d2d5
add esp, 4
mov dword [esp + 0x4c], ebp
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x55], 0
push eax
mov dword [esp + 0x54], ebp
call fcn.0076d2d5
add esp, 4
jmp 0x4f10b4
mov ecx, dword [esp + 0x60]
lea edx, [ecx + ecx]
mov ecx, esi
push edx
push fcn.004ef690
push eax
lea eax, [esp + 0x74]
push eax
call fcn.004ef770
mov ecx, dword [eax]
mov edi, dword [esp + 0x16c]
mov dword [esp + 0x10], ecx
xor ebp, ebp
cmp word [esp + 0x10], bp
jne 0x4f10cc
cmp word [esp + 0x12], bp
jne 0x4f10cc
mov byte [esp + 0x1f], 0
jmp 0x4f0b76
mov edx, dword [esp + 0x28]
cmp edx, ebp
je 0x4f11d6
mov eax, dword [esi + 0x55f8]
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x10]
mov dword [ecx + eax + 4], ebx
mov eax, dword [esp + 0x168]
mov ebx, dword [esi + 0x55f8]
inc eax
shl eax, 4
add eax, ebx
cmp dword [eax], 0xffffffff
jne 0x4f0b76
mov edx, dword [edx + 0xb90]
cmp edi, ebp
mov dword [eax], edx
mov eax, dword [esi + 0x55f8]
mov edx, dword [esp + 0x10]
mov dword [ecx + eax + 0x14], edx
je 0x4f0b76
mov eax, dword [0x821b68]
mov ecx, esi
add eax, 0x8fc
push eax
call fcn.004ee9b0
mov ecx, dword [esi + 0x5604]
dec ecx
js 0x4f0b76
mov edi, dword [esi + 0x55f8]
mov bx, word [esp + 0x10]
mov edx, ecx
shl edx, 4
add edx, edi
mov di, word [esp + 0x12]
cmp word [edx + 4], bx
jne 0x4f1172
cmp word [edx + 6], di
jne 0x4f1172
mov ebp, dword [edx]
cmp ebp, dword [eax + 0xb90]
je 0x4f117f
xor ebp, ebp
dec ecx
sub edx, 0x10
cmp ecx, ebp
jge 0x4f115a
jmp 0x4f0b76
mov eax, dword [esi + 0x5604]
cmp ecx, eax
jge 0x4f0b74
dec eax
mov edx, ecx
cmp ecx, eax
mov dword [esi + 0x5604], eax
jge 0x4f0b74
shl ecx, 4
mov eax, dword [esi + 0x55f8]
lea edi, [eax + ecx + 0x10]
add eax, ecx
inc edx
add ecx, 0x10
mov ebx, dword [edi]
mov dword [eax], ebx
mov ebx, dword [edi + 4]
mov dword [eax + 4], ebx
mov ebx, dword [edi + 8]
mov dword [eax + 8], ebx
mov edi, dword [edi + 0xc]
mov dword [eax + 0xc], edi
mov eax, dword [esi + 0x5604]
cmp edx, eax
jl 0x4f11a1
jmp 0x4f0b74
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x55f8]
mov eax, dword [esp + 0x24]
mov edx, dword [edx + 0xb90]
mov dword [eax + ecx], edx
mov ecx, dword [esi + 0x55f8]
mov edx, dword [esp + 0x10]
mov dword [eax + ecx + 4], edx
jmp 0x4f0b76