Function at 0x10040d05
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008f426
mov eax, dword fs:[0]
push eax
sub esp, 0x368
mov eax, dword [0x100bc570]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x10]
test ecx, ecx
je case.0x10040a5e.35
mov edx, dword [edx + 8]
test edx, edx
je case.0x10040a5e.35
movzx eax, byte [ecx]
add eax, 0xffffffe0
cmp eax, 0xda
ja case.0x10040a5e.35
movzx eax, byte [eax + 0x10041014]
jmp dword [eax*4 + 0x10041000]
mov edi, dword [0x10194310]
mov esi, dword [0x1019430c]
mov dword [0x101907b8], 0
cmp esi, edi
je case.0x10040a5e.35
push 0
push dword [esi]
call fcn.10056a20
add esi, 4
add esp, 8
cmp esi, edi
jne 0x10040a83
jmp case.0x10040a5e.35
movss xmm0, dword [0x100bbe90]
ucomiss xmm0, dword [0x10097e48]
lahf
test ah, 0x44
jnp case.0x10040a5e.35
push 0
push edx
push ecx
lea ecx, [ebp - 0x130]
call fcn.10004190
push 8
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], 0
call fcn.100042e0
push 1
push 8
lea eax, [ebp - 0x359]
push eax
lea ecx, [ebp - 0x130]
call fcn.10004350
movzx eax, byte [ebp - 0x359]
lea ecx, [ebp - 0x130]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.100042f0
movzx eax, byte [ebp - 0x359]
lea ecx, [ebp - 0x130]
push 1
push 0x10
mov byte [ebp + eax - 0x234], 0
lea eax, [ebp - 0x364]
push eax
call fcn.10004350
push 1
push 0x10
lea eax, [ebp - 0x360]
push eax
lea ecx, [ebp - 0x130]
call fcn.10004350
lea eax, [ebp - 0x35a]
push eax
lea ecx, [ebp - 0x130]
call fcn.10004140
push 1
push 0x10
lea eax, [ebp - 0x368]
push eax
lea ecx, [ebp - 0x130]
call fcn.10004350
push 1
push 0x10
lea eax, [ebp - 0x36c]
push eax
lea ecx, [ebp - 0x130]
call fcn.10004350
push 1
push 0x20
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x130]
call fcn.10004350
push 1
push 0x20
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x130]
call fcn.10004350
push 1
push 0x20
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x130]
call fcn.10004350
push dword [ebp - 0x364]
call fcn.10056b10
add esp, 4
mov eax, 0x10190940
xor esi, esi
nop
cmp byte [eax], 0
je 0x10040be5
add eax, 0x125
inc esi
cmp eax, 0x1019427a
jl 0x10040bd0
or esi, 0xffffffff
imul edi, esi, 0x125
lea ecx, [ebp - 0x234]
mov eax, ecx
mov edx, edi
sub edx, eax
mov byte [edi + 0x10190940], 1
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx + 0x10190949], al
test al, al
jne 0x10040c00
movzx eax, word [ebp - 0x360]
movss xmm0, dword [ebp - 0x1c]
movss xmm1, dword [ebp - 0x18]
movss xmm2, dword [ebp - 0x14]
mov dword [edi + 0x10190a5b], eax
movzx eax, word [ebp - 0x364]
mov word [edi + 0x10190a63], ax
movzx eax, word [ebp - 0x368]
mov word [edi + 0x10190a5f], ax
movzx eax, word [ebp - 0x36c]
mov word [edi + 0x10190a61], ax
movss dword [edi + 0x10190a4a], xmm0
movss dword [edi + 0x10190a4e], xmm1
movss dword [edi + 0x10190a52], xmm2
mov al, byte [ebp - 0x35a]
push 4
mov byte [edi + 0x10190a56], al
call fcn.10064a92
add esp, 4
test eax, eax
je 0x10040c8c
mov dword [eax], esi
jmp 0x10040c8e
xor eax, eax
push 0
push 0
push eax
push 0x10056c20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x10190a57], eax
lea ecx, [ebp - 0x130]
jmp 0x10040fdc
push 0
push edx
push ecx
lea ecx, [ebp - 0x244]
call fcn.10004190
push 8
lea ecx, [ebp - 0x244]
mov dword [ebp - 4], 1
call fcn.100042e0
push 1
push 0x10
lea eax, [ebp - 0x364]
push eax
lea ecx, [ebp - 0x244]
call fcn.10004350
push dword [ebp - 0x364]
call fcn.10056b10
add esp, 4
lea ecx, [ebp - 0x244]
jmp 0x10040fdc
push 0
push edx
push ecx
lea ecx, [ebp - 0x358]
call fcn.10004190
push 8
lea ecx, [ebp - 0x358]
mov dword [ebp - 4], 2
call fcn.100042e0
push 1
push 8
lea eax, [ebp - 0x35a]
push eax
lea ecx, [ebp - 0x358]
call fcn.10004350
movzx eax, byte [ebp - 0x35a]
cmp eax, 3
ja case.default.0x10040d4e
jmp dword [eax*4 + 0x100410f0]
push 1
push 0x10
lea eax, [ebp - 0x360]
push eax
lea ecx, [ebp - 0x358]
call fcn.10004350
push 1
push 8
lea eax, [ebp - 0x359]
push eax
lea ecx, [ebp - 0x358]
call fcn.10004350
mov edx, dword [0x100c02fc]
movzx ecx, word [ebp - 0x360]
mov eax, dword [edx + 0x3de]
mov eax, dword [eax + 0xc]
cmp dword [eax + ecx*4 + 0x3074], 1
jne case.default.0x10040d4e
mov eax, dword [eax + ecx*4 + 0x1134]
test eax, eax
je case.default.0x10040d4e
cmp dword [eax + 0x4c], 0
je case.default.0x10040d4e
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0
mov eax, dword [edx + 0x3de]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ecx*4 + 0x1134]
mov eax, dword [eax + 0x4c]
movzx eax, word [eax + 0x22]
push eax
call fcn.10022930
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.10022910
movzx eax, byte [ebp - 0x359]
add esp, 0xc
movss xmm1, dword [ebp - 0x7c]
mov ecx, eax
sub ecx, 1
je 0x10040e80
sub ecx, 1
je 0x10040e64
sub ecx, 1
je 0x10040e48
xorps xmm2, xmm2
mulss xmm1, xmm2
addss xmm1, dword [ebp - 0x7c]
movss dword [ebp - 0x7c], xmm1
sub eax, 1
je 0x10040e92
sub eax, 1
je 0x10040e76
sub eax, 1
je 0x10040e5a
jmp 0x10040e9a
mulss xmm1, dword [0x10097e5c]
addss xmm1, dword [ebp - 0x7c]
movss dword [ebp - 0x7c], xmm1
movss xmm2, dword [0x10097e64]
jmp 0x10040e9a
mulss xmm1, dword [0x10097e58]
addss xmm1, dword [ebp - 0x7c]
movss dword [ebp - 0x7c], xmm1
movss xmm2, dword [0x10097e60]
jmp 0x10040e9a
mulss xmm1, dword [str._n_r]
addss xmm1, dword [ebp - 0x7c]
movss dword [ebp - 0x7c], xmm1
movss xmm2, dword [0x10097e54]
movss xmm1, dword [ebp - 0x84]
lea esi, [ebp - 0x100]
mulss xmm1, xmm2
lea edi, [ebp - 0x214]
mov ecx, 0x37
lea eax, [ebp - 0x214]
push eax
mov eax, 0x6f5080
addss xmm1, dword [ebp - 0x84]
movss dword [ebp - 0x84], xmm1
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call eax
movzx ecx, word [ebp - 0x360]
lea eax, [ebp - 0x214]
mov dword [0x10190798], eax
mov eax, dword [0x100c02fc]
mov eax, dword [eax + 0x3de]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ecx*4 + 0x1134]
push dword [eax + 0x44]
call fcn.10031770
mov ecx, 0x1a
lea esi, [ebp - 0x1e8]
mov edi, dword [eax + 0x384]
add edi, 0x2c
rep movsd dword es:[edi], dword [esi]
jmp case.default.0x10040d4e
push 1
push 0x20
lea eax, [ebp - 0x364]
push eax
lea ecx, [ebp - 0x358]
call fcn.10004350
push 4
call fcn.10064a92
add esp, 4
test eax, eax
je 0x10040f52
mov ecx, dword [ebp - 0x364]
mov dword [eax], ecx
jmp 0x10040f54
xor eax, eax
push 0
push 0
push eax
push 0x10045360
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp case.default.0x10040d4e
push 1
push 0x20
lea eax, [ebp - 0x370]
push eax
lea ecx, [ebp - 0x358]
call fcn.10004350
cmp dword [ebp - 0x370], 0
jne case.default.0x10040d4e
push 1
push 0x20
lea eax, [ebp - 0x374]
push eax
lea ecx, [ebp - 0x358]
call fcn.10004350
push 4
call fcn.10064a92
add esp, 4
test eax, eax
je 0x10040fb7
mov ecx, dword [ebp - 0x374]
mov dword [eax], ecx
jmp 0x10040fb9
xor eax, eax
push 0
push 0
push eax
push 0x10045c70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp case.default.0x10040d4e
mov byte [0x1018c62c], 1
lea ecx, [ebp - 0x358]
call fcn.10004240
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10064a7b
mov esp, ebp
pop ebp
ret