Function at 0x46985d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x854
mov eax, dword [0x5a1014]
xor eax, esp
mov dword [esp + 0x850], eax
mov eax, dword [0x5a2f20]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x131a5b5
mov dword [esp + 0x24], ebx
mov dword [0x5a3d9c], ebx
call eax
pop ecx
test eax, eax
je 0x4c0730
cmp byte [0x5a4e2a], 0
jne 0x4c0744
cmp byte [0x5a2ee5], 0
push 2
mov word [esp + 0x3c], 0x7977
pop esi
je 0x4698c7
push 3
mov byte [esp + 0x3e], 0x49
pop esi
cmp byte [0x5a2ef9], 0
jne 0x4698d6
mov byte [esp + esi + 0x38], 0x66
inc esi
mov eax, dword [ebx + 0x150]
test eax, 0x400
jne 0x4c074f
test eax, 0x800
jne 0x4c075a
test eax, 0x2000
je 0x4698ff
mov byte [esp + esi + 0x38], 0x4d
inc esi
test al, 4
jne 0x4c0765
mov edx, dword [ebx + 0x184]
mov ecx, esi
cmp edx, 1
je 0x4c0795
cmp edx, 2
je 0x4c07a0
test eax, 0x4000
jne 0x4c07ad
cmp byte [0x5a304c], 0
jne 0x4c07b8
push 0x20
pop eax
mov dword [esp + 0x24], eax
cmp esi, eax
jae 0x4699f1
xor eax, eax
lea ecx, [esp + 0x58]
push 0x5a2f4c
mov byte [esp + esi + 0x3c], al
mov esi, 0x400
mov eax, dword [0x5a2f18]
push esi
push ecx
lea ecx, [esp + 0x28]
push ecx
push dword [ebx + 0x174]
lea ecx, [esp + 0x4c]
push ecx
push edi
call eax
add esp, 0x1c
test eax, eax
je 0x4c07c3
mov ecx, dword [0x5a2f4c]
push 0x5a2f44
push 0x402a88
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [0x5a2f4c]
test eax, eax
mov eax, dword [ecx]
je 0x4c08a2
push 0x5a2f40
push 0x402a88
call dword [eax + 0x24]
neg eax
sbb eax, eax
and dword [0x5a2f40], eax
cmp byte [0x5a2ef9], 0
jne 0x4699da
mov ecx, dword [0x5a4e30]
test ecx, ecx
jne 0x4c08de
push ebx
call fcn.004697b3
mov ecx, dword [esp + 0x85c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047a40f
mov esp, ebp
pop ebp
ret 8
call fcn.0047a54d
push 0x44d
push 0
jmp 0x4c073f
push 0x4bc
push edi
call fcn.0047dc0b
call dword [0x5a2f08]
jmp 0x4698ac
mov byte [esp + esi + 0x38], 0x43
inc esi
jmp 0x4698e7
mov byte [esp + esi + 0x38], 0x74
inc esi
jmp 0x4698f2
mov byte [0x5a4f4d], 1
call fcn.004768f1
mov dword [0x5a1108], eax
mov eax, dword [ebx + 0x150]
mov byte [esp + esi + 0x38], 0x6d
inc esi
test al, 8
je 0x469907
mov byte [esp + esi + 0x38], 0x53
inc esi
jmp 0x469907
mov byte [esp + esi + 0x38], 0x6c
inc esi
jmp 0x469921
mov byte [esp + ecx + 0x38], 0x6f
lea esi, [ecx + 1]
jmp 0x469921
mov byte [esp + esi + 0x38], 0x4c
inc esi
jmp 0x46992c
mov byte [esp + esi + 0x38], 0x7a
inc esi
jmp 0x469939
mov edx, dword [esp + 0x1c]
cmp edx, 0xb
jg 0x4c0833
je 0x4c07e9
lea eax, [edx - 1]
sub eax, 1
je 0x4c0826
sub eax, 1
je 0x4c082b
sub eax, 1
je 0x4c07f1
sub eax, 6
jne 0x4c088d
push edi
push 0x4b7
jmp 0x4c080c
push edi
jmp 0x4c07fa
push dword [0x5a4e30]
push 0x450
jmp 0x4c080c
call fcn.004fd4dc
push edi
push 0x4b0
xor edi, edi
push edi
jmp 0x4c0821
push 0x2100
push 0x492
push dword [0x5a4e30]
call fcn.0047dc0b
call fcn.004fd4dc
push edi
push 0x4b1
jmp 0x4c080c
push 0xd
mov eax, edx
pop ecx
sub eax, ecx
je 0x4c08d3
dec eax
sub eax, 1
je 0x4c0739
sub eax, ecx
jne 0x4c088d
cmp byte [0x5a2ef9], al
je 0x4c088d
xor dl, dl
mov cl, 1
call fcn.00457243
mov ecx, dword [0x5a3024]
test ecx, ecx
je 0x4c0877
call fcn.004d3e07
xor eax, eax
mov dword [0x5a3024], eax
jmp 0x4c0879
xor eax, eax
push eax
push eax
push eax
push eax
xor edx, edx
mov cl, 1
call fcn.004708d7
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [esp + 0x58]
push eax
jmp 0x4c089b
lea ecx, [esp + 0x58]
mov edx, eax
push ecx
xor ecx, ecx
call fcn.004e9d19
push esi
lea edx, [esp + 0x5c]
push edx
call dword [eax + 0x4c]
mov dword [esp + 0x1c], eax
lea ecx, [eax - 1]
sub ecx, 1
je 0x4c0801
sub ecx, 1
je 0x4c0806
sub ecx, 8
je 0x4c07e9
dec ecx
sub ecx, 1
jne 0x4c0894
push edi
push 0x505
jmp 0x4c080c
push 0x20
pop eax
push eax
mov edx, 0x4012a0
call fcn.0042fcdc
mov esi, eax
mov dword [esp + 0x34], esi
pop ecx
test esi, esi
je 0x4c07f4
push 0x4200
call dword [sym.imp.tbbmalloc.dll_scalable_malloc]
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4c091b
call fcn.004575aa
test al, al
jne 0x4c08fb
call fcn.004fd4dc
or dword [esp + 0x14], 0xffffffff
xor edi, edi
push esi
push 0x2100
push ebx
mov dword [esp + 0x1c], edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetws]
add esp, 0xc
test eax, eax
je 0x4c0ab1
push 0xd
pop edi
push 9
pop edx
mov dword [esp + 0x28], edx
inc dword [esp + 0x10]
mov esi, ebx
push 0x20
pop ecx
movzx eax, word [esi]
cmp ax, cx
je 0x4c0998
cmp ax, dx
je 0x4c0998
mov edx, esi
mov ecx, esi
lea eax, [esi + 0x4200]
cmp ecx, eax
je 0x4c0811
movzx eax, word [ecx]
test ax, ax
je 0x4c099d
cmp eax, 0xa
je 0x4c099d
cmp ax, di
je 0x4c099d
cmp ax, word [esp + 0x24]
je 0x4c0993
cmp ax, word [esp + 0x28]
je 0x4c0993
lea edx, [ecx + 2]
add ecx, 2
jmp 0x4c0962
add esi, 2
jmp 0x4c0951
xor eax, eax
mov word [edx], ax
cmp word [esi], ax
je 0x4c0a92
mov ecx, esi
call fcn.005056d5
cmp eax, 0xffffffff
je 0x4c09c0
mov dword [esp + 0x14], eax
jmp 0x4c0a92
cmp dword [esp + 0x14], 0xffffffff
jne 0x4c09e5
mov eax, dword [esp + 0x10]
push esi
push 0xfb1
push eax
push dword [0x5a4e30]
call fcn.004fd8a1
add esp, 0x10
jmp 0x4c0a92
mov ecx, esi
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4c09ec
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [esp + 0x2c], eax
add eax, eax
mov dword [esp + 0x18], eax
push eax
call dword [sym.imp.tbbmalloc.dll_scalable_malloc]
mov edi, eax
pop ecx
test edi, edi
jne 0x4c0a28
call fcn.004575aa
test al, al
mov eax, dword [esp + 0x18]
jne 0x4c0a08
call fcn.004fd4dc
push esi
push dword [esp + 0x30]
mov dword [esp + 0x20], edi
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
cmp dword [esp + 0x14], 0
jne 0x4c0a8f
mov esi, dword [sym.imp.VCRUNTIME140.dll_wcschr]
push 0x2a
push edi
mov byte [0x5a4e34], 1
call esi
pop ecx
pop ecx
test eax, eax
jne 0x4c0a77
push 0x3f
push edi
call esi
pop ecx
pop ecx
test eax, eax
jne 0x4c0a77
lea eax, [esp + 0x34]
mov ecx, 0x5a1470
push eax
push edi
call fcn.00456e67
jmp 0x4c0a86
lea eax, [esp + 0x18]
mov ecx, 0x5a4b50
push eax
call fcn.004d9132
test eax, eax
jne 0x4c0a8f
call fcn.004fd4dc
push 0xd
pop edi
mov esi, dword [esp + 0x30]
push esi
push 0x2100
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetws]
add esp, 0xc
push 9
pop edx
test eax, eax
jne 0x4c0948
mov ecx, esi
call fcn.0042fefa
test ebx, ebx
je 0x4c0ac4
push ebx
call dword [sym.imp.tbbmalloc.dll_scalable_free]
pop ecx
mov ebx, dword [esp + 0x20]
jmp 0x4699d4