Function at 0x420a80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x4f4008]
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 0x420dea
cmp eax, 1
je 0x420dea
cmp eax, 6
je 0x420dea
cmp eax, 5
je 0x420dea
cmp eax, 2
jne 0x420bd9
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 0x420b01
add eax, 2
cmp esi, 0xc
jl 0x420af0
jmp 0x420b20
push esi
push ecx
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea ecx, [ebp - 0x204]
call fcn.0048a1e0
mov dword [ebx + 0x1c], eax
mov edx, esi
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x420b36
mov eax, dword [0x4fc0fc]
mov eax, dword [eax + 0x1f0]
test eax, eax
je 0x420b4f
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x420b4f
mov ecx, dword [ebx + 0x1c]
cmp dword [eax + 8], ecx
je 0x420b80
mov eax, dword [eax + 4]
test eax, eax
jne 0x420b43
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.00420200
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
test eax, eax
je 0x420b4f
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 0x420baf
nop
cmp ecx, 0x32
je 0x420bc7
add eax, 2
inc ecx
cmp word [eax], 0x40
jne 0x420ba0
pop edi
lea eax, [ecx + 2]
pop esi
add eax, edx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495852
mov esp, ebp
pop ebp
ret 8
push str.unit_name_tag_error
call fcn.00420200
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, 3
je 0x420be7
cmp eax, 4
jne 0x420d49
inc edx
cmp eax, 3
mov eax, dword [0x4fc0fc]
jne 0x420bfa
mov esi, dword [eax + 0x45c]
jmp 0x420c00
mov esi, dword [eax + 0x460]
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 0x420c82
nop dword [eax]
mov edx, dword [ebp - 0x458]
mov ecx, ebx
call fcn.0041fb10
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax - 1]
cmp esi, dword [ebp - 0x45c]
jge 0x420c75
xor ecx, ecx
test esi, esi
jle 0x420c71
mov edx, dword [ebp - 0x454]
nop dword [eax]
mov ax, word [edi + ecx*2]
cmp ax, word [edx]
jne 0x420c71
inc ecx
add edx, 2
cmp ecx, esi
jl 0x420c60
cmp ecx, esi
je 0x420cb6
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x420c30
mov edi, dword [ebp - 0x45c]
xor esi, esi
test edi, edi
jle 0x420d49
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 0x420d26
lea eax, [edx - 0x3d]
jmp 0x420d35
mov ecx, dword [ebp - 0x450]
mov dword [ecx], 0
test edi, edi
je 0x420d10
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x420d10
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 0x420d0e
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.00495852
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 0x420d5f
mov esi, edx
add ecx, 2
cmp esi, edi
jl 0x420ca0
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495852
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 0x420dd4
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 0x420dcc
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.00495852
mov esp, ebp
pop ebp
ret 8
movaps xmm0, xmmword [0x4ddfb0]
xor ecx, ecx
movzx ebx, word [edi + edx*2 + 2]
lea edi, [edi + edx*2]
mov dword [ebp - 0x428], 0x4d5274
mov dword [ebp - 0x424], 0x4d527c
mov dword [ebp - 0x420], 0x4d5284
mov dword [ebp - 0x41c], 0x4d528c
mov dword [ebp - 0x418], 0x4d5294
mov dword [ebp - 0x414], 0x4d529c
mov dword [ebp - 0x410], 0x4d52a4
mov dword [ebp - 0x40c], 0x4d52ac
mov dword [ebp - 0x408], 0x4d52b4
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
lea esi, [ecx*4]
mov edx, dword [ebp + esi - 0x428]
cmp bx, word [edx]
jne 0x420ead
mov ax, word [edi + 4]
cmp ax, word [edx + 2]
je 0x420eb8
inc ecx
cmp ecx, 9
jl 0x420e90
jmp 0x420d49
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.00495852
mov esp, ebp
pop ebp
ret 8