Function at 0x41f690
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x190
push ebx
push ebp
push esi
mov esi, dword [0x48f170]
push edi
mov edi, dword [0x48f174]
xor ecx, ecx
mov byte [eax + 0x1574e8], 1
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
sub esp, 0xc8
mov ecx, 0x32
mov esi, 0x1449640
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.0040a000
add esp, 0xd8
call fcn.0041c5d0
mov edi, dword [0x47d098]
mov ebx, dword [0x47d09c]
mov ebp, dword [0x47d1f8]
mov esi, 4
test esi, esi
je 0x41f74a
mov ecx, dword [esi*4 + 0xdb487c]
push 0
push ecx
call edi
test eax, eax
jne 0x41f742
mov edx, dword [esi*4 + 0xdb487c]
push edx
call ebx
mov eax, dword [esi*4 + 0xf0dee4]
push 0x2710
push eax
call edi
mov ecx, dword [esi*4 + 0xf0dee4]
push ecx
call ebp
mov dword [esi*4 + 0xf0dee4], 0
push 0xa
call dword [0x47d080]
sub esi, 1
test esi, esi
jg 0x41f704
cmp dword [0x4be1b0], 0
mov dword [esp + 0x10], 0
jle 0x41f831
mov ebp, dword [esp + 0x1a8]
mov ecx, dword [esp + 0x1a4]
mov eax, dword [esp + 0x1a8]
add ebp, 0x798ac
sub eax, ecx
lea ebx, [ecx + 0x79808]
mov dword [esp + 0x14], eax
lea ecx, [ecx]
push ebx
call fcn.00408f60
mov edx, dword [0x14434f0]
mov eax, dword [ebp + 4]
add esp, 4
push edx
mov edx, dword [ebp - 4]
sub esp, 0x178
mov edi, esp
push eax
mov ecx, 0x5e
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp]
push ecx
mov ecx, dword [ebp - 0x7c]
push edx
mov edx, dword [ebp - 0x84]
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x80]
push ecx
mov ecx, dword [ebp - 0x9c]
push edx
mov edx, dword [ebp - 0x98]
push eax
mov eax, dword [ebp - 0x94]
push ecx
push edx
push eax
lea ecx, [esp + 0x1cc]
push ecx
call fcn.0040ddc0
mov edx, dword [esp + 0x1bc]
mov esi, eax
mov eax, dword [esp + 0x1b8]
lea edi, [edx + ebx]
mov ecx, 0x5e
add eax, 1
add esp, 0x1a8
rep movsd dword es:[edi], dword [esi]
add ebx, 0x178
add ebp, 0x178
cmp eax, dword [0x4be1b0]
mov dword [esp + 0x10], eax
jl 0x41f790
mov eax, dword [esp + 0x1a8]
mov edi, dword [esp + 0x1a4]
push 0x157628
push eax
push edi
call fcn.004014b0
push 1
call fcn.0042f210
mov ecx, dword [0x48f180]
mov edx, dword [0x48f184]
mov eax, dword [0x48f174]
add edx, ecx
mov ecx, dword [0x48f170]
add esp, 0x10
cmp edx, 1
mov dword [esp + 0x10], 1
jle 0x41f94a
mov ebp, 0x14435b0
lea ebx, [edi + 0xa5be4]
lea ebx, [ebx]
imul eax, ecx
cmp dword [0xd69a80], 1
push eax
jne 0x41f8ab
mov eax, dword [ebp + 0x88]
push eax
call fcn.004015e0
jmp 0x41f8b7
mov ecx, dword [ebp + 0x88]
push ecx
call fcn.004015a0
add esp, 8
cmp byte [ebx], 0
je 0x41f8fc
sub esp, 0xc8
mov edi, esp
lea edx, [esp + 0xf0]
push ebx
mov ecx, 0x32
mov esi, ebp
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.0044cb20
mov esi, eax
mov eax, dword [0x48f174]
mov ecx, 0x32
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x48f170]
add esp, 0xd0
jmp 0x41f919
mov ecx, dword [0x48f170]
mov eax, dword [0x48f174]
mov dword [ebp + 0x20], ecx
mov dword [ebp + 0x24], eax
mov dword [ebp + 0x90], ecx
mov dword [ebp + 0x94], eax
mov edx, dword [esp + 0x10]
mov esi, dword [0x48f180]
mov edi, dword [0x48f184]
add edx, 1
add edi, esi
add ebx, 0x40
add ebp, 0xc8
cmp edx, edi
mov dword [esp + 0x10], edx
jl 0x41f890
mov edi, dword [esp + 0x1a4]
mov esi, 0x1449468
jmp 0x41f95c
mov ecx, dword [0x48f170]
mov eax, dword [0x48f174]
imul eax, ecx
cmp dword [0xd69a80], 1
push eax
jne 0x41f973
mov eax, dword [esi]
push eax
call fcn.004015e0
jmp 0x41f97b
mov ecx, dword [esi]
push ecx
call fcn.004015a0
add esi, 0xc8
add esp, 8
cmp esi, 0x14496c0
jl 0x41f951
xor ebx, ebx
cmp dword [0x6a8fc0], ebx
jle 0x41fa7d
lea ebp, [edi + 0xa7546]
cmp byte [ebp - 0x1e], 1
jne 0x41fa61
mov esi, dword [0x48f170]
mov edi, dword [0x48f174]
xor ecx, ecx
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
movzx esi, word [ebp - 0x46]
imul esi, esi, 0xc8
mov dword [eax + 0xc], edi
sub esp, 0xc8
add esi, 0x14434e8
mov ecx, 0x32
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.0040a000
movzx edx, byte [ebp]
add esp, 0xd8
push edx
lea eax, [ebp + 1]
push eax
call fcn.0042f500
movzx ecx, word [ebp - 2]
mov edx, dword [ebp - 6]
movzx esi, word [ebp - 0x46]
add esp, 4
imul esi, esi, 0xc8
push eax
mov eax, dword [ebp - 0xa]
push ecx
mov ecx, dword [ebp - 0x1a]
push edx
mov edx, dword [ebp - 0x16]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x12]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0xe]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
sub esp, 0xc8
lea eax, [esp + 0x104]
mov edi, esp
add esi, 0x14434e8
mov ecx, 0x32
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0040cbc0
add esp, 0xf0
add ebx, 1
add ebp, 0x14c
cmp ebx, dword [0x6a8fc0]
jl 0x41f9a0
mov edi, dword [esp + 0x1a4]
mov ebp, 0x1449780
lea ebx, [edi + 0x146aed]
jmp 0x41fa90
cmp dword [0xd69a80], 1
jne 0x41fab5
mov ecx, dword [0x48f174]
imul ecx, dword [0x48f170]
mov edx, dword [ebp + 0x88]
push ecx
push edx
call fcn.004015e0
jmp 0x41face
mov eax, dword [0x48f174]
imul eax, dword [0x48f170]
mov ecx, dword [ebp + 0x88]
push eax
push ecx
call fcn.004015a0
add esp, 8
cmp byte [ebx], 0
je 0x41fb06
sub esp, 0xc8
mov edi, esp
lea edx, [esp + 0xf0]
push ebx
mov ecx, 0x32
mov esi, ebp
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.0044cb20
mov ecx, 0x32
mov esi, eax
mov edi, ebp
add esp, 0xd0
rep movsd dword es:[edi], dword [esi]
add ebp, 0xc8
add ebx, 0x20
cmp ebp, 0x1449cf8
jl 0x41fa90
mov esi, 2
mov eax, dword [0xd69a68]
push eax
push 0
push 0
push esi
push 4
push 0x47e858
call fcn.0044a4b0
add esi, 1
add esp, 0x18
cmp esi, 7
jl 0x41fb20
cmp dword [0xd69a64], 1
jne 0x41fc1d
mov edi, dword [esp + 0x1a4]
xor esi, esi
lea ebp, [edi + 0x146874]
add edi, 0x146a9c
jmp 0x41fb70
mov ebx, dword [esp + 0x1a4]
mov al, byte [ebx + esi + 0x146a74]
cmp al, 2
je 0x41fb9c
cmp al, 7
je 0x41fb9c
mov ecx, dword [0xd69a68]
mov edx, dword [edi]
push ecx
push 0
push edx
push esi
push 4
push 0x47e858
jmp 0x41fbab
mov eax, dword [0xd69a68]
mov ecx, dword [edi]
push eax
push 0
push ecx
push esi
push 2
push ebp
call fcn.0044a4b0
add esi, 1
add esp, 0x18
add edi, 4
add ebp, 0x40
cmp esi, 2
jl 0x41fb70
mov esi, 2
lea ebp, [ebx + 0x1468f4]
lea edi, [ebx + 0x146aa4]
mov al, byte [ebx + esi + 0x146a74]
cmp al, 2
je 0x41fbf7
cmp al, 7
je 0x41fbf7
mov edx, dword [0xd69a68]
mov eax, dword [edi]
push edx
push 0
push eax
push esi
push 4
push 0x47e858
jmp 0x41fc07
mov ecx, dword [0xd69a6c]
mov edx, dword [edi]
push ecx
push 0
push edx
push esi
push 2
push ebp
call fcn.0044a4b0
add esi, 1
add esp, 0x18
add edi, 4
add ebp, 0x40
cmp esi, 6
jl 0x41fbd2
push 1
sub esp, 0xc8
mov ecx, 0x32
mov esi, 0x14435b0
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.0043cad0
mov esi, dword [esp + 0x270]
mov ebx, dword [0x47d0a8]
add esp, 0xcc
xor edi, edi
mov ebp, 0xa472a8
add esi, 0x12ef9c
jmp 0x41fc60
cmp byte [esi - 0x100c], 1
jne 0x41fd25
push edi
push ebp
push esi
call fcn.004208b0
mov eax, dword [esi - 4]
xor ecx, ecx
add esp, 0xc
cmp edi, ecx
mov dword [esi - 0x1008], eax
je 0x41fd25
or eax, 0xffffffff
mov dword [esi + 0x40], ecx
mov dword [esi + 0xc4], ecx
mov dword [esi + 0x84], eax
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], eax
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], eax
mov dword [esi + 0xa8], eax
lea edx, [edi*4 + 0x6a8fc4]
push edx
mov dword [esi + 0xac], eax
push ecx
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], eax
push edi
mov dword [esi + 0xb8], eax
push 0x421360
mov dword [esi + 0xbc], eax
push ecx
mov dword [esi + 0xc0], eax
push ecx
mov dword [esi - 0x1008], ecx
mov dword [esi - 4], ecx
call fcn.0045b593
add esp, 0x18
push 0
push eax
mov dword [edi*4 + 0xf0dee4], eax
call ebx
add ebp, 0x7a120
add edi, 1
add esi, 0x4e94
cmp ebp, 0xca9848
jl 0x41fc60
call fcn.00438af0
mov eax, dword [esp + 0x1a4]
xor ecx, ecx
mov dword [eax + 0x157514], ecx
mov dword [eax + 0x157518], 1
mov dword [eax + 0x15751c], ecx
call fcn.0041c5d0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x190
ret