Function at 0x411030
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor edx, edx
push ebx
mov ebx, dword [0x435b00]
push esi
push edi
mov esi, ebx
movzx eax, word [ebx]
test ax, ax
je 0x411069
mov edi, eax
nop dword [eax]
movzx ecx, di
lea esi, [esi + 2]
movzx edi, word [esi]
lea eax, [edx + 1]
cmp ecx, 0x2c
cmovne eax, edx
mov edx, eax
test di, di
jne 0x411050
mov eax, dword [ebp + 8]
lea ecx, [edx + 1]
lea edi, [ecx*4]
mov dword [eax], ecx
mov eax, dword [0x435ab4]
mov eax, dword [eax + 0x7c]
test eax, eax
jne 0x41109b
push 0xc5e8a09c
xor edx, edx
xor ecx, ecx
call fcn.004022b0
mov ecx, dword [0x435ab4]
mov dword [ecx + 0x7c], eax
call eax
mov ecx, dword [0x435ab4]
mov esi, eax
mov eax, dword [ecx + 0x78]
test eax, eax
jne 0x4110c3
push 0x263040ab
xor edx, edx
xor ecx, ecx
call fcn.004022b0
mov ecx, dword [0x435ab4]
mov dword [ecx + 0x78], eax
push edi
push 8
push esi
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41127c
mov esi, ebx
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4110e0
mov eax, dword [0x435ab4]
sub esi, ecx
sar esi, 1
mov eax, dword [eax + 0x7c]
test eax, eax
jne 0x411112
push 0xc5e8a09c
xor edx, edx
xor ecx, ecx
call fcn.004022b0
mov ecx, dword [0x435ab4]
mov dword [ecx + 0x7c], eax
call eax
mov ecx, dword [0x435ab4]
mov edi, eax
mov eax, dword [ecx + 0x78]
test eax, eax
jne 0x41113a
push 0x263040ab
xor edx, edx
xor ecx, ecx
call fcn.004022b0
mov ecx, dword [0x435ab4]
mov dword [ecx + 0x78], eax
lea ecx, [esi*2 + 2]
push ecx
push 8
push edi
call eax
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x411290
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x2c
xor esi, esi
push edi
mov dword [ebp + 8], esi
call fcn.0041c3c4
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x41121f
mov esi, edi
xor eax, eax
mov word [ebx], ax
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x411180
mov eax, dword [0x435ab4]
sub esi, ecx
sar esi, 1
mov eax, dword [eax + 0x7c]
test eax, eax
jne 0x4111b2
push 0xc5e8a09c
xor edx, edx
xor ecx, ecx
call fcn.004022b0
mov ecx, dword [0x435ab4]
mov dword [ecx + 0x7c], eax
call eax
mov ecx, dword [0x435ab4]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 0x78]
test eax, eax
jne 0x4111db
push 0x263040ab
xor edx, edx
xor ecx, ecx
call fcn.004022b0
mov ecx, dword [0x435ab4]
mov dword [ecx + 0x78], eax
lea ecx, [esi*2 + 2]
push ecx
push 8
push dword [ebp - 0xc]
call eax
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [ecx + esi*4], eax
test eax, eax
je 0x41127c
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edi, [ebx + 2]
inc esi
push 0x2c
push edi
mov dword [ebp + 8], esi
call fcn.0041c3c4
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x411176
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411224
sub ecx, edx
sar ecx, 1
lea ecx, [ecx*2 + 2]
call fcn.00413ee0
mov ebx, dword [ebp - 4]
mov dword [ebx + esi*4], eax
test eax, eax
jne 0x411261
push str.Memory_allocation_failed
call fcn.00410b60
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp - 8]
call fcn.00413f40
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.Memory_allocation_failed
call fcn.00410b60
add esp, 4
push 1
call fcn.0041d4a4
push str.Memory_allocation_failed
call fcn.00410b60
add esp, 4
push 1
call fcn.0041d4a4
int3