Function at 0x45888d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x434
mov eax, dword [0x5a1014]
xor eax, esp
mov dword [esp + 0x430], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 4]
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4588c9
push dword [esi + 4]
sub ecx, edx
sar ecx, 1
cmp ecx, 0x208
jae 0x4b07ff
push 0x209
push 0x5a3110
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
cmp dword [0x5a3054], ebx
je 0x4b080a
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x13]
push eax
push edi
mov ecx, esi
call fcn.00458a11
mov esi, eax
test bl, bl
jne 0x4b081a
test esi, esi
je 0x45899d
test byte [esi + 0xcc], 0x40
je 0x45893e
test dword [edi + 0x14c], 0x200
jne 0x4b0838
mov ebx, dword [esp + 0x14]
cmp byte [0x5a2ef9], 0
jne 0x4b08b2
mov ecx, dword [edi + 0x14c]
test cl, 0x40
jne 0x4589b4
push edi
mov ecx, esi
call fcn.0044a2c5
push 0
push esi
xor edx, edx
mov ecx, edi
call fcn.00445580
cmp byte [0x5a2ef9], 0
jne 0x4b08e1
push 0
mov ecx, esi
call fcn.00437471
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4b0905
cmp byte [0x5a4f22], 0
jne 0x4b090c
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047a40f
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi + 0x14]
sub eax, 1
jne 0x4589de
mov al, byte [esi + 0x2c]
test al, al
jne 0x4b08be
test byte [esi + 0xcc], 0x40
mov ecx, edi
je 0x4589f4
push 0
push esi
xor edx, edx
call fcn.00457e76
jmp 0x45896e
sub eax, 1
je 0x4589ed
sub eax, 1
je 0x4589c7
sub eax, 1
jne 0x458a0a
mov al, byte [esi + 0x38]
and al, 1
jmp 0x4589bf
mov edx, esi
call fcn.00457fb9
push esi
xor edx, edx
mov ecx, edi
call fcn.0043c380
jmp 0x45896e
sub eax, 1
je 0x4589bc
jmp 0x4589c7
push 0x450
push ebx
call fcn.0047dc0b
mov edx, esi
mov ecx, edi
mov bl, 1
call fcn.00523f7d
jmp 0x458906
test esi, esi
jne 0x458925
cmp byte [esp + 0x13], 0
je 0x45899d
and dword [0x5a3054], esi
jmp 0x45899d
cmp byte [0x5a2ee5], 0
je 0x4b0894
cmp byte [0x5a4ecc], 0
jne 0x4b0853
test byte [edi + 0x1b4], 0x40
je 0x4b0875
push ecx
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.0046cedf
push eax
push 0x42755c
push 0x17b8
push 0
call fcn.004fd507
add esp, 0x10
xor dl, dl
mov cl, 1
call fcn.00457243
xor eax, eax
xor edx, edx
push eax
push eax
push eax
push eax
xor cl, cl
call fcn.004708d7
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x13]
push eax
push edi
push dword [esp + 0x20]
mov edx, esi
mov ecx, ebx
call fcn.00523736
mov esi, eax
jmp 0x458942
and dword [esi + 0xd4], 0xffffffef
jmp 0x45894f
mov eax, 0x20000000
test eax, ecx
jne 0x4589c7
or ecx, eax
xor dl, dl
mov dword [edi + 0x14c], ecx
mov ecx, edi
call fcn.00435d9a
jmp 0x4589c7
test byte [ebx + 0x20], 0x40
jne 0x4b08f3
mov eax, 0x80
or word [esi + 0xcc], ax
cmp dword [0x5a4f08], 0
jne 0x45899d
jmp 0x45897b
mov dword [eax], esi
jmp 0x458990
test dword [esi + 0xd4], 0x8001
jne 0x45899d
push ebx
mov ecx, edi
call fcn.00522be8
jmp 0x45899d