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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x100
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x17], cl
push 0
push 0
lea ecx, [esp + 0x2c]
call fcn.0040bc10
mov eax, dword [0xa255e0]
mov dword [esp + 0x24], vtable.DynamicVectorClass_class_TechnoClass__.0
mov dword [esp + 0x10], eax
mov al, byte [0xa255c8]
test al, al
mov dword [esp + 0x38], 0xa
mov dword [esp + 0x34], 0
je 0x6571ef
dec dword [esp + 0x10]
mov ecx, dword [0xa255a0]
mov edx, dword [esp + 0x10]
sub esp, 0x3f4
lea esi, [ecx + 0x218]
mov ecx, 0xfd
mov edi, esp
push edx
rep movsd dword es:[edi], dword [esi]
push str.Creating__d_units___Random_seed_is__08x_n
call fcn.004068f0
mov eax, dword [0xa255a0]
mov ecx, dword [eax + 0x214]
push ecx
push str.UniqueID_is__08x_n
call fcn.004068f0
mov eax, dword [0xa1e068]
add esp, 0x404
xor edi, edi
xor ebp, ebp
xor ebx, ebx
test eax, eax
jle 0x657290
mov edx, dword [0xa1e05c]
mov ecx, dword [edx + ebx*4]
mov al, byte [ecx + 0x5f1]
test al, al
je 0x657286
mov edx, dword [0x821b68]
xor eax, eax
mov esi, dword [edx + 0x9e0]
test esi, esi
jle 0x65727b
mov edx, dword [edx + 0x9d4]
cmp dword [edx], ecx
je 0x657286
inc eax
add edx, 4
cmp eax, esi
jl 0x65726f
mov eax, dword [ecx]
call dword [eax + 0xac]
add edi, eax
inc ebp
mov eax, dword [0xa1e068]
inc ebx
cmp ebx, eax
jl 0x657244
mov eax, dword [0xa27f90]
xor esi, esi
test eax, eax
jle 0x6572c3
mov ecx, dword [0xa27f84]
mov ecx, dword [ecx + esi*4]
mov al, byte [ecx + 0x5f1]
test al, al
je 0x6572b9
mov edx, dword [ecx]
call dword [edx + 0xac]
add edi, eax
inc ebp
mov eax, dword [0xa27f90]
inc esi
cmp esi, eax
jl 0x65729b
mov eax, edi
lea ecx, [esp + 0x74]
cdq
idiv ebp
mov dl, byte [esp + 0x17]
imul eax, dword [esp + 0x10]
mov dword [esp + 0x3c], eax
call fcn.00656e80
xor eax, eax
xor edi, edi
mov dword [esp + 0x8c], eax
xor ecx, ecx
mov dword [esp + 0x90], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x94], eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x98], eax
mov eax, dword [0xa1a5b8]
cmp eax, edi
jle 0x65795b
mov edx, dword [0xa1a5ac]
mov esi, dword [edx + ecx*4]
mov dword [esp + 0x10], esi
mov eax, dword [esi + 0x34]
mov dl, byte [eax + 0x1a6]
test dl, dl
jne 0x657949
add eax, 0x24
push eax
push ecx
push str.Generating_units_for_house__d___s__n
call fcn.004068f0
add esp, 0xc
lea ecx, [esp + 0x40]
push edi
push edi
call fcn.005b5f80
mov ebx, 0xa
lea ecx, [esp + 0x58]
push edi
push edi
mov dword [esp + 0x48], vtable.DynamicVectorClass_class_UnitTypeClass__.0
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], edi
call fcn.005b5fd0
mov dword [esp + 0x58], vtable.DynamicVectorClass_class_InfantryTypeClass__.0
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], edi
mov eax, dword [esi + 0x34]
mov ebx, 1
xor ebp, ebp
mov ecx, dword [eax + 0xb4]
mov eax, dword [0xa1e068]
shl ebx, cl
cmp eax, edi
jle 0x65744e
mov edi, dword [esp + 0x48]
mov ecx, dword [0xa1e05c]
mov esi, dword [ecx + ebp*4]
mov al, byte [esi + 0x5f1]
test al, al
je 0x65743e
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x55c]
cmp edx, dword [eax + 0x11c]
jg 0x65743e
test dword [esi + 0x5e8], ebx
je 0x65743e
mov ecx, dword [0x821b68]
xor eax, eax
mov edx, dword [ecx + 0x9e0]
test edx, edx
jle 0x6573f8
mov ecx, dword [ecx + 0x9d4]
cmp dword [ecx], esi
je 0x65743e
inc eax
add ecx, 4
cmp eax, edx
jl 0x6573ec
cmp dword [esp + 0x50], edi
jl 0x657428
mov al, byte [esp + 0x4d]
test al, al
jne 0x65740a
test edi, edi
jne 0x65743e
mov eax, dword [esp + 0x54]
test eax, eax
jle 0x65743e
mov edx, eax
mov eax, dword [esp + 0x40]
add edi, edx
push 0
push edi
lea ecx, [esp + 0x48]
call dword [eax + 8]
test al, al
je 0x65743a
mov ecx, dword [esp + 0x50]
mov eax, ecx
inc ecx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x44]
mov dword [ecx + eax*4], esi
mov edi, dword [esp + 0x48]
mov eax, dword [0xa1e068]
inc ebp
cmp ebp, eax
jl 0x6573a3
xor edi, edi
cmp dword [0xa27f90], edi
jle 0x6574da
mov eax, dword [esp + 0x60]
mov edx, dword [0xa27f84]
mov esi, dword [edx + edi*4]
mov cl, byte [esi + 0x5f1]
test cl, cl
je 0x6574cf
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0x55c]
cmp ecx, dword [edx + 0x11c]
jg 0x6574cf
test dword [esi + 0x5e8], ebx
je 0x6574cf
cmp dword [esp + 0x68], eax
jl 0x6574b9
mov cl, byte [esp + 0x65]
test cl, cl
jne 0x65749d
test eax, eax
jne 0x6574cf
mov ecx, dword [esp + 0x6c]
test ecx, ecx
jle 0x6574cf
add eax, ecx
push 0
push eax
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x60]
call dword [eax + 8]
test al, al
je 0x6574cb
mov ecx, dword [esp + 0x68]
mov eax, ecx
inc ecx
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x5c]
mov dword [ecx + eax*4], esi
mov eax, dword [esp + 0x60]
mov ecx, dword [0xa27f90]
inc edi
cmp edi, ecx
jl 0x65745e
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x65751d
mov edx, dword [esp + 0x84]
mov eax, dword [0xa255a0]
dec edx
push edx
push 0
lea ecx, [eax + 0x218]
call fcn.0062fcf0
mov byte [esp + eax + 0x8c], 1
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x20], 1
mov ecx, dword [ecx + eax*4]
mov dword [esp + 0x18], ecx
jmp 0x657610
mov ecx, 0x1a
xor eax, eax
lea edi, [esp + 0xa8]
xor ebp, ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x84]
test eax, eax
jle 0x6575cc
mov cl, byte [esp + ebp + 0x8c]
test cl, cl
jne 0x6575c3
xor edi, edi
test eax, eax
jle 0x6575c3
mov cl, byte [esp + edi + 0x8c]
test cl, cl
je 0x6575be
mov eax, dword [esp + 0x78]
sub esp, 8
lea esi, [esp + ebp*4 + 0xb0]
mov dx, word [eax + ebp*4 + 2]
mov cx, word [eax + ebp*4]
sub dx, word [eax + edi*4 + 2]
sub cx, word [eax + edi*4]
movsx edx, dx
movsx eax, cx
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fstp qword [esp]
fstp st(0)
fstp st(0)
call fcn.004b9f30
add esp, 8
call fcn.0076a6b0
movsx ecx, ax
mov eax, dword [esi]
add eax, ecx
mov dword [esi], eax
mov eax, dword [esp + 0x84]
inc edi
cmp edi, eax
jl 0x65754f
inc ebp
cmp ebp, eax
jl 0x65753e
xor edi, edi
xor edx, edx
xor ecx, ecx
test eax, eax
jle 0x6575f4
lea ebp, [esp + 0xa8]
mov esi, dword [ebp]
cmp esi, edx
jg 0x6575e8
test edx, edx
jne 0x6575ec
mov edx, esi
mov edi, ecx
inc ecx
add ebp, 4
cmp ecx, eax
jl 0x6575dd
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x20]
inc eax
mov byte [esp + edi + 0x8c], 1
mov ecx, dword [edx + edi*4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
mov esi, dword [esp + 0x10]
xor edx, edx
movsx eax, cx
movsx ecx, word [esp + 0x1a]
shl eax, 8
add esi, 0x53bc
add eax, 0x80
shl ecx, 8
mov dword [esi], eax
add ecx, 0x80
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov al, byte [0xa255c8]
test al, al
je 0x65771c
push 0x7d0
call fcn.0076d5a7
mov esi, eax
xor ebp, ebp
add esp, 4
cmp esi, ebp
je 0x657682
mov eax, dword [0x821b68]
mov edi, dword [esp + 0x10]
add eax, 0x9d0
push edi
push eax
mov ecx, edi
call fcn.004eeaa0
mov ecx, esi
push eax
call fcn.006eef50
mov esi, eax
jmp 0x657688
mov edi, dword [esp + 0x10]
xor esi, esi
movsx ecx, word [esp + 0x18]
movsx edx, word [esp + 0x1a]
mov eax, dword [esi]
push ebp
shl ecx, 8
add ecx, 0x80
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xa0], ecx
lea ecx, [esp + 0xa0]
shl edx, 8
add edx, 0x80
push ecx
mov ecx, esi
mov dword [esp + 0xa8], edx
call dword [eax + 0xd4]
test al, al
jne 0x6576f0
push 1
lea edx, [esp + 0x1c]
mov ecx, esi
call fcn.006579e0
test eax, eax
jne 0x6576f0
cmp esi, ebp
je 0x65771e
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 0x20]
jmp 0x65771e
cmp esi, ebp
je 0x65771e
mov eax, dword [0xa9e970]
mov dword [edi + 0x5308], ebp
mov dword [edi + 0x530c], eax
mov ecx, dword [0xa255a0]
test byte [ecx], 0x10
je 0x65771e
push 1
push esi
mov ecx, edi
call fcn.004e6c40
jmp 0x65771e
xor ebp, ebp
mov eax, dword [esp + 0x28]
xor ebx, ebx
cmp eax, ebp
mov dword [esp + 0x34], ebp
je 0x657743
mov cl, byte [esp + 0x31]
test cl, cl
je 0x657743
push eax
call fcn.0076d2d5
add esp, 4
xor eax, eax
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x3c]
mov byte [esp + 0x31], 0
cmp ecx, ebp
mov dword [esp + 0x2c], ebp
jle 0x6578bf
mov edx, ecx
mov eax, 0x55555556
lea ecx, [edx + edx]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x1c]
xor esi, esi
cmp ebx, eax
jge 0x65779e
mov eax, dword [esp + 0x50]
test eax, eax
jle 0x65779e
mov ecx, dword [0xa255a0]
dec eax
push eax
push esi
add ecx, 0x218
call fcn.0062fcf0
mov edx, dword [esp + 0x44]
mov esi, dword [edx + eax*4]
jmp 0x6577c1
mov eax, dword [esp + 0x68]
test eax, eax
jle 0x6577c1
dec eax
push eax
mov eax, dword [0xa255a0]
push 0
lea ecx, [eax + 0x218]
call fcn.0062fcf0
mov ecx, dword [esp + 0x5c]
mov esi, dword [ecx + eax*4]
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x8c]
mov edi, eax
mov ecx, edi
call fcn.0040dc20
lea edx, [esp + 0x18]
mov ecx, edi
push 4
mov ebp, eax
call fcn.006579e0
test eax, eax
jne 0x657802
test edi, edi
je 0x6578b1
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 0x20]
jmp 0x6578b1
mov edi, dword [esp + 0x10]
lea eax, [esi + 0x24]
push eax
mov ecx, dword [edi + 0x34]
add ecx, 0x24
push ecx
push str.House__s_deployed_object__s_n
call fcn.004068f0
mov edx, dword [esi]
add esp, 0xc
mov ecx, esi
call dword [edx + 0xac]
mov ecx, dword [esp + 0x34]
add ebx, eax
mov eax, dword [esp + 0x2c]
cmp ecx, eax
jl 0x65785e
mov cl, byte [esp + 0x31]
test cl, cl
jne 0x657842
test eax, eax
jne 0x657870
mov ecx, dword [esp + 0x38]
test ecx, ecx
jle 0x657870
add eax, ecx
push 0
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
call dword [eax + 8]
test al, al
je 0x657870
mov ecx, dword [esp + 0x34]
mov eax, ecx
inc ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x28]
mov dword [ecx + eax*4], ebp
mov edx, dword [0xa255a0]
mov eax, dword [edx]
test ah, 2
je 0x65788a
push 1
lea ecx, [ebp + 0x118]
call fcn.00707fb0
mov ecx, edi
call fcn.004f46a0
test al, al
jne 0x6578a4
mov eax, dword [ebp]
push 0xb
mov ecx, ebp
call dword [eax + 0x1d8]
jmp 0x6578b1
mov edx, dword [ebp]
push 5
mov ecx, ebp
call dword [edx + 0x1d8]
cmp ebx, dword [esp + 0x3c]
jl 0x65776f
mov eax, dword [esp + 0x28]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x34], esi
je 0x6578de
mov cl, byte [esp + 0x31]
test cl, cl
je 0x6578de
push eax
call fcn.0076d2d5
add esp, 4
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x5c]
mov byte [esp + 0x31], 0
cmp eax, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x58], vtable.VectorClass_class_InfantryTypeClass__.0
je 0x65790c
mov cl, byte [esp + 0x65]
test cl, cl
je 0x65790c
push eax
call fcn.0076d2d5
add esp, 4
mov dword [esp + 0x5c], esi
mov eax, dword [esp + 0x44]
mov byte [esp + 0x65], 0
cmp eax, esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x40], vtable.VectorClass_class_UnitTypeClass__.0
je 0x65793a
mov cl, byte [esp + 0x4d]
test cl, cl
je 0x65793a
push eax
call fcn.0076d2d5
add esp, 4
mov dword [esp + 0x44], esi
mov ecx, dword [esp + 0x70]
mov byte [esp + 0x4d], 0
mov dword [esp + 0x48], esi
xor edi, edi
mov eax, dword [0xa1a5b8]
inc ecx
cmp ecx, eax
mov dword [esp + 0x70], ecx
jl 0x657315
mov eax, dword [0xa255a0]
push 0xffff
push edi
lea ecx, [eax + 0x218]
call fcn.0062fcf0
push eax
push str.Finished_unit_generation._Random_number_is__d_n
call fcn.004068f0
mov eax, dword [esp + 0x80]
add esp, 8
cmp eax, edi
mov dword [esp + 0x74], vtable.VectorClass_class_Cell_.0
je 0x6579aa
mov cl, byte [esp + 0x81]
test cl, cl
je 0x6579aa
push eax
call fcn.0076d2d5
add esp, 4
mov dword [esp + 0x78], edi
mov eax, dword [esp + 0x28]
mov byte [esp + 0x81], 0
cmp eax, edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x24], vtable.VectorClass_class_TechnoClass__.0
je 0x6579d7
mov cl, byte [esp + 0x31]
test cl, cl
je 0x6579d7
push eax
call fcn.0076d2d5
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret