Function at 0x41fc80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x4f0008]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 8]
mov dword [ebp - 0x450], ebx
test eax, eax
je 0x41ffe3
cmp eax, 1
je 0x41ffe3
cmp eax, 6
je 0x41ffe3
cmp eax, 5
je 0x41ffe3
cmp eax, 2
jne 0x41fdd9
lea eax, [edx + 2]
mov dword [ebx + 0x1c], 0xffffffff
lea ecx, [edi + eax*2]
mov dword [ebp - 0x454], eax
xor edx, edx
mov eax, ecx
xor esi, esi
nop dword [eax]
inc esi
cmp word [eax], 0x29
je 0x41fd01
add eax, 2
cmp esi, 0xc
jl 0x41fcf0
jmp 0x41fd20
push esi
push ecx
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea ecx, [ebp - 0x204]
call fcn.00485e30
mov dword [ebx + 0x1c], eax
mov edx, esi
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x41fd32
mov eax, dword [0x4f7f30]
mov eax, dword [eax + 0x1d0]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x41fd4c
mov ecx, dword [ebx + 0x1c]
nop
cmp dword [eax + 8], ecx
je 0x41fd7d
mov eax, dword [eax + 4]
test eax, eax
jne 0x41fd40
push dword [ebx + 0x1c]
lea eax, [ebp - 0x204]
push str.unit_id_error
push str._s___d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x204]
push eax
call fcn.0041f3d0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
test eax, eax
je 0x41fd4c
mov eax, dword [eax + 8]
xor ecx, ecx
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x454]
add eax, edx
cmp word [edi + eax*2], 0x40
lea eax, [edi + eax*2]
je 0x41fdaf
nop dword [eax + eax]
cmp ecx, 0x32
je 0x41fdc7
add eax, 2
inc ecx
cmp word [eax], 0x40
jne 0x41fda0
pop edi
lea eax, [ecx + 2]
pop esi
add eax, edx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004912f2
mov esp, ebp
pop ebp
ret 8
push str.unit_name_tag_error
call fcn.0041f3d0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, 3
je 0x41fde7
cmp eax, 4
jne 0x41ff42
inc edx
cmp eax, 3
mov eax, dword [0x4f7f30]
jne 0x41fdfa
mov esi, dword [eax + 0x43c]
jmp 0x41fe00
mov esi, dword [eax + 0x440]
mov eax, dword [esi + 8]
mov dword [ebp - 0x458], eax
lea eax, [edi + edx*2]
push eax
mov dword [ebp - 0x454], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax - 1]
mov eax, dword [esi + 4]
mov dword [ebp - 0x45c], edi
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x41fe82
nop dword [eax]
mov edx, dword [ebp - 0x458]
mov ecx, ebx
call fcn.0041edb0
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax - 1]
cmp esi, dword [ebp - 0x45c]
jge 0x41fe75
xor ecx, ecx
test esi, esi
jle 0x41fe71
mov edx, dword [ebp - 0x454]
nop dword [eax]
mov ax, word [edi + ecx*2]
cmp ax, word [edx]
jne 0x41fe71
inc ecx
add edx, 2
cmp ecx, esi
jl 0x41fe60
cmp ecx, esi
je 0x41feaf
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x41fe30
mov edi, dword [ebp - 0x45c]
xor esi, esi
test edi, edi
jle 0x41ff42
mov ebx, dword [ebp - 0x454]
mov ecx, ebx
mov dword [ebp - 0x458], 0xff1e
nop
movzx edx, word [ecx]
xor eax, eax
cmp edx, 0x3e
jne 0x41ff1f
lea eax, [edx - 0x3d]
jmp 0x41ff2e
mov ecx, dword [ebp - 0x450]
mov dword [ecx], 0
test edi, edi
je 0x41ff09
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x41ff09
lea eax, [eax*2 + 2]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [ebp - 0x450]
mov eax, dword [edi]
test eax, eax
je 0x41ff07
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [edi], ebx
pop edi
lea eax, [esi + 1]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004912f2
mov esp, ebp
pop ebp
ret 8
cmp dx, word [ebp - 0x458]
mov edx, 1
cmove eax, edx
lea edx, [esi + 1]
test eax, eax
jne 0x41ff58
mov esi, edx
add ecx, 2
cmp esi, edi
jl 0x41fea0
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004912f2
mov esp, ebp
pop ebp
ret 8
push edx
push ebx
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [ebp - 0x450]
mov dword [eax], 0
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x41ffcd
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [eax*2 + 2]
push eax
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
lea eax, [ebp - 0x404]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp - 0x450]
mov eax, dword [ecx]
test eax, eax
je 0x41ffc5
push eax
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x450]
mov dword [eax], edi
pop edi
lea eax, [esi - 1]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004912f2
mov esp, ebp
pop ebp
ret 8
movaps xmm0, xmmword [0x4d9800]
xor ecx, ecx
movzx ebx, word [edi + edx*2 + 2]
lea edi, [edi + edx*2]
mov dword [ebp - 0x428], 0x4d115c
mov dword [ebp - 0x424], 0x4d1164
mov dword [ebp - 0x420], 0x4d116c
mov dword [ebp - 0x41c], 0x4d1174
mov dword [ebp - 0x418], 0x4d117c
mov dword [ebp - 0x414], 0x4d1184
mov dword [ebp - 0x410], 0x4d118c
mov dword [ebp - 0x40c], 0x4d1194
mov dword [ebp - 0x408], 0x4d119c
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 1
mov dword [ebp - 0x444], 2
movups xmmword [ebp - 0x440], xmm0
mov dword [ebp - 0x430], 9
mov dword [ebp - 0x42c], 0xb
nop word [eax + eax]
lea esi, [ecx*4]
mov edx, dword [ebp + esi - 0x428]
cmp bx, word [edx]
jne 0x4200ad
mov ax, word [edi + 4]
cmp ax, word [edx + 2]
je 0x4200b8
inc ecx
cmp ecx, 9
jl 0x420090
jmp 0x41ff42
mov ecx, dword [ebp - 0x450]
mov eax, dword [ebp + esi - 0x44c]
pop edi
pop esi
mov dword [ecx + 0x14], eax
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004912f2
mov esp, ebp
pop ebp
ret 8