Function at 0x420810
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x4f3008]
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 0x420b7a
cmp eax, 1
je 0x420b7a
cmp eax, 6
je 0x420b7a
cmp eax, 5
je 0x420b7a
cmp eax, 2
jne 0x420969
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 0x420891
add eax, 2
cmp esi, 0xc
jl 0x420880
jmp 0x4208b0
push esi
push ecx
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea ecx, [ebp - 0x204]
call fcn.004895e0
mov dword [ebx + 0x1c], eax
mov edx, esi
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x4208c6
mov eax, dword [0x4fb114]
mov eax, dword [eax + 0x1f0]
test eax, eax
je 0x4208df
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x4208df
mov ecx, dword [ebx + 0x1c]
cmp dword [eax + 8], ecx
je 0x420910
mov eax, dword [eax + 4]
test eax, eax
jne 0x4208d3
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.0041ff90
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
test eax, eax
je 0x4208df
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 0x42093f
nop
cmp ecx, 0x32
je 0x420957
add eax, 2
inc ecx
cmp word [eax], 0x40
jne 0x420930
pop edi
lea eax, [ecx + 2]
pop esi
add eax, edx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004954a2
mov esp, ebp
pop ebp
ret 8
push str.unit_name_tag_error
call fcn.0041ff90
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, 3
je 0x420977
cmp eax, 4
jne 0x420ad9
inc edx
cmp eax, 3
mov eax, dword [0x4fb114]
jne 0x42098a
mov esi, dword [eax + 0x45c]
jmp 0x420990
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 0x420a12
nop dword [eax]
mov edx, dword [ebp - 0x458]
mov ecx, ebx
call fcn.0041f8a0
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax - 1]
cmp esi, dword [ebp - 0x45c]
jge 0x420a05
xor ecx, ecx
test esi, esi
jle 0x420a01
mov edx, dword [ebp - 0x454]
nop dword [eax]
mov ax, word [edi + ecx*2]
cmp ax, word [edx]
jne 0x420a01
inc ecx
add edx, 2
cmp ecx, esi
jl 0x4209f0
cmp ecx, esi
je 0x420a46
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x4209c0
mov edi, dword [ebp - 0x45c]
xor esi, esi
test edi, edi
jle 0x420ad9
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 0x420ab6
lea eax, [edx - 0x3d]
jmp 0x420ac5
mov ecx, dword [ebp - 0x450]
mov dword [ecx], 0
test edi, edi
je 0x420aa0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x420aa0
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 0x420a9e
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.004954a2
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 0x420aef
mov esi, edx
add ecx, 2
cmp esi, edi
jl 0x420a30
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004954a2
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 0x420b64
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 0x420b5c
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.004954a2
mov esp, ebp
pop ebp
ret 8
movaps xmm0, xmmword [0x4dd2c0]
xor ecx, ecx
movzx ebx, word [edi + edx*2 + 2]
lea edi, [edi + edx*2]
mov dword [ebp - 0x428], 0x4d4ed8
mov dword [ebp - 0x424], 0x4d4ee0
mov dword [ebp - 0x420], 0x4d4ee8
mov dword [ebp - 0x41c], 0x4d4ef0
mov dword [ebp - 0x418], 0x4d4ef8
mov dword [ebp - 0x414], 0x4d4f00
mov dword [ebp - 0x410], 0x4d4f08
mov dword [ebp - 0x40c], 0x4d4f10
mov dword [ebp - 0x408], 0x4d4f18
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 0x420c3d
mov ax, word [edi + 4]
cmp ax, word [edx + 2]
je 0x420c48
inc ecx
cmp ecx, 9
jl 0x420c20
jmp 0x420ad9
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.004954a2
mov esp, ebp
pop ebp
ret 8