Function at 0x1004b6f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0x14]
push ebx
mov ebx, dword [ebp + 8]
add eax, eax
add eax, eax
add eax, eax
sub eax, dword [ecx + 0x1c]
push esi
add eax, dword [ecx + 0xc]
mov ecx, dword [ebx + 0x14]
mov esi, dword [ebx + 0xa4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebx + 0x250]
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x240]
push edi
mov edi, dword [ebx + 0xa0]
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], esi
mov dword [ebp - 0x1c], ecx
mov edx, eax
cmp eax, ecx
jl 0x1004b751
mov edx, ecx
cmp edx, 1
jge 0x1004b75f
mov dword [ebp - 4], 1
jmp 0x1004b769
mov dword [ebp - 4], eax
cmp eax, ecx
jl 0x1004b769
mov dword [ebp - 4], ecx
shl eax, 0xa
cdq
idiv dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov eax, ecx
shl eax, 0xa
cdq
idiv dword [ebp - 4]
xor ecx, ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], eax
lea eax, [esi + 0x38]
cmp dword [esi + 0x144], ecx
jne 0x1004b7b5
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
push 0x45
push edx
mov edx, dword [ebx + 0xc]
push ecx
mov ecx, dword [ebx + 8]
push edx
push ecx
push eax
call fcn.10047170
add esp, 0x18
mov dword [esi + 0x144], 1
xor ecx, ecx
mov eax, 1
sub eax, dword [ebx + 0x64]
mov dword [ebx + 0x64], eax
test byte [edi + 0xc], 2
mov dword [edi + 0x1c], eax
mov edx, dword [ebx + 0x68]
mov dword [edi + 0x20], edx
je 0x1004b813
cmp dword [esi + 0x148], eax
je 0x1004b813
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
push eax
mov eax, dword [ebx + 0x6c]
and eax, 4
push eax
mov eax, dword [ebx + 0xe4]
push ecx
mov ecx, dword [ebx + 0xcc]
push edx
mov edx, dword [ebx + 0xc0]
push eax
mov eax, dword [esi + 0x38]
push ecx
push edx
push eax
call fcn.100475d0
mov ecx, dword [edi + 0x1c]
add esp, 0x20
mov dword [esi + 0x148], ecx
xor ecx, ecx
test dword [edi + 0xc], 0x4000
mov dword [edi + 0x140], ecx
mov dword [edi + 0x138], ecx
mov dword [edi + 0x134], ecx
mov dword [edi + 0x130], ecx
mov dword [edi + 0x12c], ecx
mov dword [edi + 0x128], ecx
mov dword [edi + 0x124], ecx
mov dword [edi + 0x14], 1
je 0x1004b86e
movzx edx, word [ebx + 0x14]
movzx eax, word [ebx + 0x10]
mov ecx, dword [edi + 0x44]
push edx
movzx edx, word [ebx + 8]
push eax
push ecx
push edx
lea eax, [edi + 0x38]
push eax
call fcn.100486d0
add esp, 0x14
xor ecx, ecx
push ecx
push 0x10
push ecx
mov ecx, dword [ebx + 0xa0]
push ecx
push ebx
xor edx, edx
xor ecx, ecx
call fcn.10049e50
add esp, 0x14
mov edx, edi
mov esi, ebx
call fcn.1004a6f0
test byte [edi + 8], 8
je 0x1004ba05
mov esi, dword [ebp - 0x1c]
push esi
lea eax, [ebx + 0xe4]
push eax
mov eax, dword [edi + 0x44]
lea ecx, [ebx + 0xcc]
push ecx
lea edx, [ebx + 0xc0]
push edx
mov edx, dword [ebp - 8]
push edx
push edi
push ebx
push eax
lea ecx, [ebp - 0x5c]
push ecx
call fcn.1005d020
lea edx, [edi + 0x48]
mov ecx, 8
mov esi, eax
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x14]
add esp, 0x24
test dword [esi + 0x10], 0x200
je 0x1004b917
mov edi, dword [ebp - 8]
mov ecx, dword [esi + 0x44]
lea eax, [ebx + 0xe4]
push eax
lea eax, [ebx + 0xcc]
push eax
lea eax, [ebx + 0xc0]
push eax
mov eax, dword [ebp - 8]
add eax, 0x38
push eax
lea eax, [esi + 0x38]
push eax
push edi
push esi
push ebx
push ecx
push edx
call fcn.1005e140
add esp, 0x28
jmp 0x1004b93b
mov eax, dword [ebx + 0xfc]
push eax
mov eax, dword [ebp - 8]
lea ecx, [esi + 0x38]
push ecx
add eax, 0x38
push eax
mov eax, dword [esi + 0x44]
push esi
push eax
push ebx
push edx
call fcn.1005e030
mov edi, dword [ebp - 8]
add esp, 0x1c
mov ecx, dword [ebx + 0x10]
imul ecx, dword [ebx + 0x14]
lea edx, [eax + ecx*2]
mov ecx, dword [ebx]
lea eax, [esi + 0xe4]
push eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 4]
push eax
push ecx
lea eax, [esi + 0x48]
push eax
push 3
push 3
mov dword [ebp - 0x30], edx
call fcn.100353c0
add esp, 0x18
cmp dword [ebp - 0x30], 0
jge 0x1004b9c8
cmp dword [esi + 0x50], 0
jne 0x1004b987
cmp dword [esi + 0x54], 0
jne 0x1004b987
cmp dword [esi + 0x58], 0
jne 0x1004b987
cmp dword [esi + 0x5c], 0
je 0x1004b9c8
mov ecx, dword [esi + 0x44]
lea edx, [ebx + 0xfc]
push edx
mov edx, dword [esi + 0x1c]
push ecx
push edx
mov dword [esi + 0x14], 3
mov ecx, dword [ebx + 0x6c]
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0x68]
push 0
shr ecx, 2
and ecx, 1
push ecx
push edx
mov edx, dword [ebx + 0x14]
mov ecx, eax
shr ecx, 1
push ecx
mov ecx, dword [ebp - 0x28]
push eax
mov eax, dword [ebx + 0x10]
push edx
push eax
lea eax, [edi + 0x38]
push eax
push ecx
jmp 0x1004b9fb
mov edx, dword [esi + 0x44]
mov ecx, dword [esi + 0x1c]
mov eax, dword [ebx + 8]
push 0
push edx
mov edx, dword [ebx + 0x6c]
push ecx
mov ecx, dword [ebx + 0x68]
push 0
shr edx, 2
and edx, 1
push edx
push ecx
mov ecx, dword [ebx + 0x10]
mov edx, eax
shr edx, 1
push edx
mov edx, dword [ebp - 0x28]
push eax
mov eax, dword [ebx + 0x14]
push eax
push ecx
lea eax, [edi + 0x38]
push eax
push edx
call fcn.10035630
mov edi, esi
add esp, 0x30
mov eax, dword [ebx + 0x240]
test eax, eax
jle 0x1004bc9f
mov eax, dword [ebp - 0x20]
add eax, 0x200
sar eax, 0xa
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0x18]
lea eax, [eax + esi - 1]
cdq
idiv esi
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
add ecx, 0x200
sar ecx, 0xa
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], eax
lea eax, [ecx + edx]
mov dword [ebp - 0x38], eax
imul eax, dword [ebp - 0x18]
lea eax, [eax + esi - 1]
cdq
idiv esi
mov esi, dword [ebp - 0x14]
shl ecx, 0xa
mov dword [ebp - 0x34], eax
sub eax, dword [ebp - 0x28]
lea eax, [eax + esi - 1]
cdq
idiv esi
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
sub eax, ecx
add dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x240]
shl eax, 0xa
cdq
idiv dword [ebp - 4]
mov ecx, esi
shl ecx, 0xa
sub eax, ecx
add dword [ebp - 0x20], eax
test esi, esi
jle 0x1004bb48
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x30]
lea esi, [esi + esi*8]
add esi, esi
lea eax, [edx*4]
add esi, esi
mov dword [ebp - 0x30], eax
add esi, esi
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebx + 0x244]
mov eax, dword [esi + edx + 0x1c]
push ecx
push 0
push eax
call fcn.1000e230
mov ecx, dword [ebx + 0x244]
mov dword [esi + ecx + 0x44], ebx
mov edx, dword [ebx + 0x244]
mov ecx, dword [ebp - 0x10]
mov dword [esi + edx + 0xc], ecx
mov eax, dword [ebx + 0x244]
mov edx, dword [ebp - 0x14]
mov dword [esi + eax + 0x10], edx
mov eax, dword [ebx + 0x244]
mov edx, dword [ebp - 0x34]
mov dword [esi + eax + 0x18], edx
mov eax, dword [ebx + 0x244]
mov edx, dword [ebp - 0x28]
mov dword [esi + eax + 0x14], edx
mov eax, dword [ebp + 8]
add eax, ecx
add esp, 0xc
test al, 1
je 0x1004bb1a
mov edx, dword [ebx + 0xd0]
jmp 0x1004bb20
mov edx, dword [ebx + 0xd4]
sar eax, 1
imul eax, dword [ebx + 8]
shl eax, 4
add eax, edx
mov edx, dword [ebx + 0x244]
inc ecx
mov dword [esi + edx + 8], eax
add esi, 0x48
mov dword [ebp - 0x10], ecx
cmp ecx, dword [ebp - 0x14]
jl 0x1004bab2
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov ecx, dword [ebx + 0x244]
lea eax, [esi + edx]
lea esi, [eax + eax*8]
mov esi, dword [ecx + esi*8 - 0x2c]
sub esi, 4
lea edx, [edx + edx*8]
mov dword [ecx + edx*8 + 0x20], esi
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x10], ecx
mov dword [ebp + 8], eax
cmp eax, dword [ebx + 0x240]
jl 0x1004ba13
mov eax, 1
mov dword [ebp + 8], eax
cmp dword [ebx + 0x240], eax
jle 0x1004bbc7
mov esi, 0x48
nop
mov edx, dword [ebx + 0x244]
push 0
push 0
add edx, esi
push edx
push fcn.1005c400
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebx + 0x244]
mov dword [esi + ecx], eax
mov eax, dword [ebp + 8]
inc eax
add esi, 0x48
mov dword [ebp + 8], eax
cmp eax, dword [ebx + 0x240]
jl 0x1004bb90
mov edx, dword [ebx + 0x244]
push edx
call fcn.1005c400
mov eax, 1
add esp, 4
mov dword [ebp + 8], eax
cmp dword [ebx + 0x240], eax
jle 0x1004bc24
mov esi, 0x48
jmp 0x1004bbf0
mov eax, dword [ebx + 0x244]
mov ecx, dword [esi + eax]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebx + 0x244]
mov eax, dword [esi + edx]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
inc eax
add esi, 0x48
mov dword [ebp + 8], eax
cmp eax, dword [ebx + 0x240]
jl 0x1004bbf0
xor eax, eax
mov dword [edi + 0x20], eax
mov dword [ebp + 8], eax
cmp dword [ebx + 0x240], eax
jle 0x1004bcd2
mov edx, dword [edi + 0x12c]
mov ecx, dword [edi + 0x128]
mov dword [ebp - 0x28], eax
jmp 0x1004bc53
mov edx, dword [ebp - 0x38]
mov esi, dword [ebx + 0x244]
add ecx, dword [eax + esi + 0x28]
mov dword [edi + 0x128], ecx
mov esi, dword [ebx + 0x244]
add edx, dword [eax + esi + 0x2c]
mov dword [ebp - 0x38], edx
mov dword [edi + 0x12c], edx
mov edx, dword [ebx + 0x244]
mov edx, dword [eax + edx + 0x30]
cmp edx, dword [ebp - 0x28]
jbe 0x1004bc8b
mov dword [ebp - 0x28], edx
mov dword [edi + 0x20], edx
mov edx, dword [ebp + 8]
inc edx
add eax, 0x48
mov dword [ebp + 8], edx
cmp edx, dword [ebx + 0x240]
jl 0x1004bc50
jmp 0x1004bcd2
mov eax, dword [ebp - 0x1c]
push eax
push 0x100000
lea ecx, [ebx + 0xfc]
push ecx
lea edx, [ebx + 0xe4]
push edx
mov edx, dword [ebp - 8]
lea eax, [ebx + 0xcc]
push eax
lea ecx, [ebx + 0xc0]
push ecx
push edx
push edi
push ebx
call fcn.1005be30
add esp, 0x24
mov esi, dword [ebx + 0x20]
mov eax, dword [edi + 0x30]
cdq
idiv esi
mov ecx, eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x2c], edx
mov eax, dword [eax + 0x30]
cdq
idiv esi
mov esi, dword [ebp + 0xc]
sub ecx, eax
mov dword [edi + 0x28], ecx
mov ecx, dword [edi + 0x44]
mov edx, dword [ecx + 0xf0]
push edx
push 1
push edi
push ebx
push esi
call fcn.10057740
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
add esp, 0x14
mov dword [ebp - 0x10], ecx
mov dword [ebp + 8], ecx
cmp eax, ecx
jle 0x1004be71
xor esi, esi
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
add eax, 0x200
sar eax, 0xa
mov ecx, eax
add eax, dword [ebp - 0x10]
shl ecx, 0xa
mov dword [ebp - 0x38], eax
imul eax, dword [ebp - 0x18]
sub edx, ecx
mov ecx, dword [ebx + 0x244]
add dword [ebp - 0xc], edx
mov dword [esi + ecx + 0x44], ebx
mov ecx, dword [ebp - 0x1c]
lea eax, [eax + ecx - 1]
cdq
idiv ecx
mov edx, dword [ebx + 0x244]
mov dword [esi + edx + 0x18], eax
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0x18]
lea eax, [eax + ecx - 1]
cdq
idiv ecx
mov ecx, dword [ebx + 0x244]
mov dword [esi + ecx + 0x14], eax
mov ecx, dword [ebp + 8]
test cl, 1
je 0x1004bd8b
mov eax, dword [ebx + 0xd0]
jmp 0x1004bd91
mov eax, dword [ebx + 0xd4]
mov edx, ecx
sar edx, 1
imul edx, dword [ebx + 8]
shl edx, 4
add edx, eax
mov eax, dword [ebx + 0x244]
mov dword [esi + eax + 8], edx
mov edx, dword [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0x10], edx
cmp ecx, eax
jle 0x1004be5b
mov edx, dword [ebx + 0x244]
mov edx, dword [esi + edx + 0x40]
mov dword [edx + 0x1c], eax
mov edx, dword [ebx + 0x244]
mov edx, dword [esi + edx + 0x40]
mov dword [edx + 0x14], eax
mov edx, dword [ebx + 0x244]
mov edx, dword [esi + edx + 0x40]
mov dword [edx + 0x10], eax
mov edx, dword [ebx + 0x244]
mov edx, dword [esi + edx + 0x40]
mov dword [edx + 0xc], eax
mov edx, dword [ebx + 0x244]
mov edx, dword [esi + edx + 0x40]
mov dword [edx], eax
mov eax, dword [ebx + 0x244]
mov edx, dword [esi + eax + 0x3c]
mov eax, dword [edx + 0x14]
mov dword [edx + 0x10], eax
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
bswap eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [edx], eax
mov eax, dword [edx + 0x14]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
bswap eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [edx + 4], eax
mov eax, dword [edx + 0x1c]
test eax, eax
je 0x1004be4e
mov ecx, 0x20
sub ecx, eax
or eax, 0xffffffff
shl eax, cl
mov ecx, dword [ebp + 8]
and eax, dword [edx]
mov dword [edx + 8], eax
jmp 0x1004be55
mov dword [edx + 8], 0
mov eax, dword [edx + 0x1c]
mov dword [edx + 0xc], eax
inc ecx
add esi, 0x48
mov dword [ebp + 8], ecx
cmp ecx, dword [ebp - 4]
jl 0x1004bd23
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x244]
mov dword [ecx + 0x3c], esi
mov edx, dword [ebx + 0x244]
lea ecx, [edi + 0x124]
mov dword [edx + 0x40], ecx
cmp eax, 1
jle 0x1004bed0
dec eax
mov esi, 0x48
mov dword [ebp + 8], eax
jmp 0x1004bea0
mov eax, dword [ebx + 0x244]
push 0
push 0
add eax, esi
push eax
push fcn.1004b0a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebx + 0x244]
mov dword [esi + ecx], eax
add esi, 0x48
dec dword [ebp + 8]
jne 0x1004bea0
mov esi, dword [ebp + 0xc]
mov edx, dword [ebx + 0x244]
push edx
call fcn.1004b0a0
mov eax, dword [ebp - 4]
add esp, 4
cmp eax, 1
jle 0x1004bf1d
dec eax
mov esi, 0x48
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x244]
mov ecx, dword [eax + esi]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebx + 0x244]
mov eax, dword [edx + esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0x48
dec dword [ebp + 8]
jne 0x1004bef0
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0x14]
cmp dword [esi + 0xc], 0
je 0x1004bf4a
mov edx, dword [esi + 8]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
bswap eax
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x10]
mov edx, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [esi + 0xc]
add eax, 7
shr eax, 3
add ecx, eax
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1004bf56
shr eax, 3
sub ecx, eax
mov eax, dword [ebp - 0x2c]
cdq
and edx, 7
add eax, edx
sar eax, 3
sub ecx, eax
mov dword [edi + 0x120], ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebx + 0xa0]
push ecx
push esi
push ebx
call fcn.1004aa50
add esp, 0xc
mov esi, ebx
lea ecx, [edi + 0x124]
call fcn.1004b000
mov ecx, dword [ebx + 0x34]
imul ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x3c]
imul ecx, esi
mov eax, 0x51eb851f
imul ecx
mov ecx, dword [edi + 0x130]
add ecx, dword [edi + 0x134]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jge 0x1004c12c
mov edx, dword [ebx + 0x118]
cmp edx, dword [ebx + 0x11c]
jge 0x1004bfd5
test byte [ebx + 0x28], 2
jne 0x1004c12c
cmp dword [edi + 0x14], 1
jne 0x1004c12c
mov eax, dword [ebp - 0x18]
imul eax, esi
mov esi, dword [ebp + 0xc]
xor ecx, ecx
mov dword [edi + 0x124], ecx
mov dword [edi + 0x134], ecx
mov dword [edi + 0x130], ecx
mov dword [edi + 0x138], eax
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
bswap eax
mov dword [ebp + 0xc], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [esi + 0x14]
mov dword [esi], edx
mov edx, dword [eax + 4]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
bswap eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x1c]
cmp eax, ecx
jbe 0x1004c04e
mov ecx, 0x20
sub ecx, eax
or edx, 0xffffffff
shl edx, cl
and edx, dword [esi]
mov dword [esi + 8], edx
jmp 0x1004c051
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
mov ecx, dword [ebx + 0x20]
mov eax, dword [edi + 0x30]
cdq
idiv ecx
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x2c], edx
mov eax, dword [eax + 0x30]
cdq
idiv ecx
mov ecx, dword [ebp + 0xc]
sub ecx, eax
mov dword [edi + 0x28], ecx
mov ecx, dword [edi + 0x44]
mov edx, dword [ecx + 0xf0]
push edx
push 0
push edi
push ebx
push esi
call fcn.10057740
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x18]
mov dword [edi + 0x18], ecx
mov edx, dword [eax + 0x10]
mov dword [edi + 0x10], edx
mov ecx, dword [eax + 0x1c]
mov dword [edi + 0x1c], ecx
mov edx, dword [eax + 0x20]
mov dword [edi + 0x20], edx
mov ecx, dword [eax + 0x24]
mov dword [edi + 0x24], ecx
mov edx, dword [eax + 0x30]
mov dword [edi + 0x30], edx
mov ecx, dword [eax + 0x34]
mov dword [edi + 0x34], ecx
mov edx, dword [ebx + 4]
mov ecx, dword [ebx + 8]
push edx
push ecx
add eax, 0x38
push eax
lea edx, [edi + 0x38]
push edx
call fcn.10047120
mov eax, dword [ebp + 8]
mov edx, dword [edi + 0x44]
imul eax, eax, 0x1e8
push eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x44]
push ecx
push edx
call fcn.1000e2b0
mov ecx, dword [esi + 0xc]
and ecx, 7
mov eax, 8
sub eax, ecx
mov edx, dword [eax*4 + 0x1007522c]
push edx
mov edx, esi
xor ebx, ebx
call fcn.10048b90
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0x14]
add esp, 0x34
add eax, eax
add eax, eax
add eax, eax
sub eax, dword [ebp - 0x2c]
sub eax, dword [esi + 0x1c]
add eax, dword [esi + 0xc]
shr eax, 3
mov dword [edi + 0x120], eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0xa0]
mov dword [ecx + 0x144], 0
mov edx, dword [ebx + 0xa0]
lea eax, [ebx + 0x128]
push eax
lea ecx, [ebx + 0xc0]
push ecx
mov dword [edx + 0x148], 0xffffffff
call fcn.100470f0
lea edx, [ebx + 0x134]
push edx
lea eax, [ebx + 0xcc]
push eax
call fcn.100470f0
lea ecx, [ebx + 0x140]
push ecx
add ebx, 0xe4
push ebx
call fcn.100470f0
add esp, 0x18
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret