Function at 0x4792c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x559940]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [ecx + 0x1b8]
push ebx
push esi
push edi
mov edi, dword [ecx]
mov esi, edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ecx
test byte [edi + 0x44], 1
mov dword [esp + 0x3c], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x34], 0
mov dword [esp + 0x18], edi
jne 0x4793a0
mov eax, dword [esi + 0x1c]
lea ecx, [edx + edx*4]
shl ecx, 4
mov dword [esp + 0x20], eax
add eax, ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x1c], eax
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x40], ecx
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx + 0x38]
mov ebx, dword [ecx + 0x1c]
test eax, eax
je 0x479343
cmp dword [esi + 0x38], 0
jne 0x4793a0
cmp dword [ecx + 0x3c], 0
jne 0x4793a0
mov edx, dword [esi + 8]
test edx, 0x100
je 0x479358
test eax, eax
jne 0x4793a0
cmp dword [ebx], 0
je 0x4793a0
test byte [ecx + 8], 1
jne 0x4793a0
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x47937b
mov edi, dword [esp + 0x20]
cmp dword [edi], 1
mov edi, dword [esp + 0x18]
jg 0x4793a0
test ebx, ebx
jne 0x4793a0
cmp dword [esi + 0x2c], 0
je 0x479387
cmp dword [ecx + 0x2c], 0
jne 0x4793a0
test ebx, ebx
je 0x479391
cmp dword [ecx + 0x2c], 0
jne 0x4793a0
test eax, eax
je 0x4793b4
cmp dword [esi + 0x20], 0
jne 0x4793a0
and edx, 1
je 0x4793b7
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret
and edx, 1
test dword [ecx + 8], 0x2000
jne 0x4793a0
mov eax, dword [esp + 0x1c]
test byte [eax + 0x2c], 0x20
je 0x4793e6
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x34], 1
cmp dword [eax], 1
jg 0x4793a0
test ebx, ebx
jne 0x4793a0
mov eax, dword [eax + 0x18]
cmp dword [eax + 0x38], ebx
jne 0x4793a0
cmp dword [ecx + 0x30], 0
lea eax, [ecx + 0x30]
mov dword [esp + 0x24], eax
je 0x479447
test ebx, ebx
jne 0x4793a0
test edx, edx
jne 0x4793a0
mov eax, dword [esp + 0x20]
cmp dword [eax], 1
jne 0x4793a0
test byte [ecx + 8], 9
jne 0x4793a0
mov edx, dword [ecx + 0x30]
test edx, edx
je 0x479417
cmp byte [ecx + 4], 0x74
jne 0x4793a0
mov eax, dword [ecx + 0x1c]
cmp dword [eax], 1
jl 0x4793a0
mov ecx, edx
test ecx, ecx
jne 0x479404
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x479447
mov edx, dword [eax]
test edx, edx
jle 0x479447
add eax, 0x18
cmp word [eax], 0
je 0x4793a0
inc ecx
add eax, 0x18
cmp ecx, edx
jl 0x479435
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [eax + 0x10]
mov dword [ebx + 0x1b8], ecx
cmp byte [edi + 0x9d], 0
jne 0x4794bf
cmp byte [ebx + 0x190], 0
jne 0x4794bf
mov eax, dword [edi + 0x130]
test eax, eax
je 0x4794bf
push ecx
push 0
push 0
push 0
push 0x15
push dword [edi + 0x134]
call eax
add esp, 0x18
cmp eax, 1
jne 0x4794a1
push str.not_authorized
push ebx
call fcn.00408830
mov dword [ebx + 0xc], 0x17
jmp 0x4794bc
test eax, eax
je 0x4794bf
cmp eax, 2
je 0x4794bf
push str.authorizer_malfunction
push ebx
call fcn.00408830
mov dword [ebx + 0xc], 1
add esp, 8
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x1b8], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
test eax, eax
je 0x47957e
nop dword [eax + eax]
mov eax, dword [esp + 0x28]
mov edx, eax
mov ebx, dword [esi + 0x2c]
mov edi, dword [esi + 0x38]
mov esi, dword [esi + 0x3c]
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x18]
push 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 0
call fcn.00441f50
mov ecx, dword [esp + 0x2c]
mov edx, eax
mov eax, dword [esp + 0x24]
add esp, 4
mov dword [ecx + 0x3c], esi
mov esi, ecx
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x38], edi
mov dword [esi + 0x2c], ebx
mov byte [esi + 4], 0x74
test edx, edx
je 0x47955a
mov dword [edx + 0x30], eax
test eax, eax
je 0x479555
mov dword [eax + 0x34], edx
mov dword [edx + 0x34], esi
mov eax, edx
mov edi, dword [esp + 0x18]
mov dword [esi + 0x30], eax
cmp byte [edi + 0x49], 0
jne 0x479a3c
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4794e0
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x1c]
mov ebx, eax
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x44], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x479631
cmp dword [edi + 0x1d0], 0
je 0x4795b2
mov edx, ecx
mov ecx, edi
call fcn.00405430
jmp 0x479631
cmp ecx, dword [edi + 0x128]
jb 0x4795d2
cmp ecx, dword [edi + 0x12c]
jae 0x4795d2
mov eax, dword [edi + 0x124]
mov dword [ecx], eax
mov dword [edi + 0x124], ecx
jmp 0x479631
cmp dword [0x55a418], 0
je 0x479627
mov eax, dword [0x560268]
test eax, eax
je 0x4795f2
push eax
call dword [0x55a474]
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call dword [0x55a450]
sub dword [0x560070], eax
add esp, 4
dec dword [0x560094]
push dword [esp + 0x10]
call dword [0x55a448]
mov eax, dword [0x560268]
add esp, 4
test eax, eax
je 0x479631
push eax
call dword [0x55a47c]
jmp 0x47962e
push ecx
call dword [0x55a448]
add esp, 4
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x4796d7
cmp dword [edi + 0x1d0], 0
je 0x479658
mov edx, ecx
mov ecx, edi
call fcn.00405430
jmp 0x4796d7
cmp ecx, dword [edi + 0x128]
jb 0x479678
cmp ecx, dword [edi + 0x12c]
jae 0x479678
mov eax, dword [edi + 0x124]
mov dword [ecx], eax
mov dword [edi + 0x124], ecx
jmp 0x4796d7
cmp dword [0x55a418], 0
je 0x4796cd
mov eax, dword [0x560268]
test eax, eax
je 0x479698
push eax
call dword [0x55a474]
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call dword [0x55a450]
sub dword [0x560070], eax
add esp, 4
dec dword [0x560094]
push dword [esp + 0x10]
call dword [0x55a448]
mov eax, dword [0x560268]
add esp, 4
test eax, eax
je 0x4796d7
push eax
call dword [0x55a47c]
jmp 0x4796d4
push ecx
call dword [0x55a448]
add esp, 4
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x14]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x47977d
cmp dword [edi + 0x1d0], 0
je 0x4796fe
mov edx, ecx
mov ecx, edi
call fcn.00405430
jmp 0x47977d
cmp ecx, dword [edi + 0x128]
jb 0x47971e
cmp ecx, dword [edi + 0x12c]
jae 0x47971e
mov eax, dword [edi + 0x124]
mov dword [ecx], eax
mov dword [edi + 0x124], ecx
jmp 0x47977d
cmp dword [0x55a418], 0
je 0x479773
mov eax, dword [0x560268]
test eax, eax
je 0x47973e
push eax
call dword [0x55a474]
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call dword [0x55a450]
sub dword [0x560070], eax
add esp, 4
dec dword [0x560094]
push dword [esp + 0x10]
call dword [0x55a448]
mov eax, dword [0x560268]
add esp, 4
test eax, eax
je 0x47977d
push eax
call dword [0x55a47c]
jmp 0x47977a
push ecx
call dword [0x55a448]
add esp, 4
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x18]
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x1c], 0
test edx, edx
je 0x4797d8
mov eax, dword [edx + 0x20]
cmp eax, 1
jne 0x4797cd
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0x78]
test eax, eax
cmovne ecx, eax
mov eax, dword [ecx + 0x1c8]
mov dword [edx + 0x4c], eax
mov dword [ecx + 0x1c8], edx
mov ecx, dword [esp + 0x1c]
jmp 0x4797d1
dec eax
mov dword [edx + 0x20], eax
mov dword [ecx + 0x18], 0
lea eax, [edi + 0x49]
nop dword [eax + eax]
mov edi, dword [esi + 0x1c]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x1c]
mov byte [esp + 0x17], 0
mov dword [esp + 0x10], eax
mov ebx, dword [eax]
test edi, edi
je 0x479802
mov al, byte [ecx + 0x2c]
mov byte [esp + 0x17], al
jmp 0x479867
mov ecx, dword [esp + 0x18]
push 0
push 0x58
call fcn.004058c0
mov edi, eax
add esp, 8
test edi, edi
je 0x479a1d
push 0x50
lea eax, [edi + 8]
mov dword [edi + 4], 1
push 0
push eax
mov dword [edi], 1
call fcn.004f7f30
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov dword [edi + 0x38], 0xffffffff
cmp byte [eax], 0
jne 0x479a07
mov eax, dword [edi]
lea eax, [eax + eax*4]
add eax, eax
mov dword [edi + eax*8 - 0x40], 0
mov dword [edi + eax*8 - 0x44], 0
mov dword [esi + 0x1c], edi
cmp ebx, 1
jle 0x479898
mov eax, dword [esp + 0x3c]
mov edx, edi
mov ecx, dword [esp + 0x18]
inc eax
push eax
lea eax, [ebx - 1]
push eax
call fcn.00457110
mov edi, eax
add esp, 8
mov eax, dword [esp + 0x20]
mov dword [esi + 0x1c], edi
cmp byte [eax], 0
jne 0x479a24
jmp 0x47989c
test ebx, ebx
jle 0x47990b
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
add esi, 8
add eax, edi
mov dword [esp + 0x10], eax
lea edi, [eax + 8]
mov edx, dword [edi + 0x38]
mov ecx, dword [esp + 0x18]
call fcn.00456e70
movups xmm0, xmmword [esi]
push 0x50
push 0
movups xmmword [edi], xmm0
push esi
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [esi + 0x30]
movups xmmword [edi + 0x30], xmm0
movups xmm0, xmmword [esi + 0x40]
movups xmmword [edi + 0x40], xmm0
mov eax, dword [esi + 0x30]
mov dword [esp + 0x3c], eax
call fcn.004f7f30
add esp, 0xc
lea edi, [edi + 0x50]
add esi, 0x50
sub ebx, 1
jne 0x4798b0
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
jmp 0x479911
mov eax, dword [esp + 0x38]
add eax, edi
mov ebx, dword [esp + 0x24]
mov cl, byte [esp + 0x17]
mov byte [eax + 0x2c], cl
mov edx, dword [ebx + 0x2c]
test edx, edx
je 0x479948
xor ecx, ecx
cmp dword [edx], ecx
jle 0x47993e
lea eax, [edx + 0x18]
nop dword [eax]
xor edi, edi
lea eax, [eax + 0x18]
mov word [eax - 0x18], di
inc ecx
cmp ecx, dword [edx]
jl 0x479930
mov dword [esi + 0x2c], edx
mov dword [ebx + 0x2c], 0
mov edx, dword [ebx + 0x20]
mov edi, dword [esp + 0x18]
test edx, edx
je 0x479963
push 0
push 0
mov ecx, edi
call fcn.004416a0
add esp, 8
jmp 0x479965
xor eax, eax
cmp dword [esp + 0x34], 0
mov dword [esp + 0x10], eax
jbe 0x47997b
mov edx, dword [esp + 0x30]
mov ecx, eax
call fcn.004717c0
push dword [esi + 0x20]
mov edx, dword [esp + 0x14]
mov ecx, edi
call fcn.00440e80
mov dword [esi + 0x20], eax
add esp, 4
mov eax, dword [esp + 0x20]
cmp byte [eax], 0
jne 0x4799ce
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], eax
mov edx, esi
mov eax, dword [esp + 0x40]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x54], eax
mov eax, dword [ebx]
push 0
mov dword [esp + 0x5c], eax
call fcn.00479170
add esp, 4
mov eax, dword [ebx + 8]
and eax, 1
or dword [esi + 8], eax
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x4799e8
mov dword [esi + 0x38], eax
mov dword [ebx + 0x38], 0
mov esi, dword [esi + 0x30]
mov ebx, dword [ebx + 0x30]
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
test esi, esi
je 0x479a28
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
jmp 0x4797e0
mov edx, edi
mov edi, dword [esp + 0x18]
mov ecx, edi
call fcn.00457490
mov dword [esi + 0x1c], 0
jmp 0x479a28
mov dword [esi + 0x1c], 0
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x44]
test edx, edx
je 0x479a3c
push 1
mov ecx, edi
call fcn.004711a0
add esp, 4
mov ecx, dword [esp + 0x5c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret