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

Disassembly:
mov eax, 0xc4
call fcn.005c8080
mov eax, dword [0x678dc8]
xor eax, esp
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xcc]
push ebx
push ebp
mov ebp, dword [esp + 0xd8]
push esi
mov esi, dword [esp + 0xd4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xe0]
push edi
mov ebx, dword [esi + 0x944]
xor edi, edi
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 0x20], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], edi
test ebp, ebp
jne 0x4753b4
push edi
lea ebx, [ebp + 3]
call fcn.004ac5a0
add esp, 4
jmp 0x475477
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x64]
test byte [eax + 0x30], 8
jne 0x4753d0
mov eax, dword [ecx]
cmp eax, 0x304
jl 0x4753d0
cmp eax, 0x10000
jne 0x4753ec
cmp dword [esi + 0x8f0], edi
je 0x4753ec
push 0
mov ebx, 4
call fcn.004ac5a0
add esp, 4
jmp 0x475477
push 0
cmp ebp, 0x20
jae 0x475402
mov ebx, 4
call fcn.004ac5a0
add esp, 4
jmp 0x475477
push 0x66ed1f
push 8
call fcn.004a5120
mov edi, eax
mov dword [esp + 0x1c], 0
add esp, 0xc
test edi, edi
je 0x47546a
cmp dword [ebx + 0x160], 0
jne 0x4754d0
cmp dword [ebx + 0x15c], 0
je 0x4754d0
push edi
call fcn.0048a420
add esp, 4
test eax, eax
jne 0x475510
push dword [edi]
call fcn.004c2110
push dword [esp + 0x14]
call fcn.004c1c80
push 0
push 0x66ed1f
push edi
call fcn.004a4ec0
add esp, 0x14
xor ebx, ebx
push ebx
call fcn.004ac5a0
add esp, 4
xor edi, edi
mov eax, dword [esi + 0x944]
mov ecx, dword [eax + 0x254]
test ecx, ecx
je 0x475984
cmp ebx, 3
je 0x4754a3
cmp ebx, 4
je 0x4754a3
cmp ebx, 5
je 0x4754a3
cmp ebx, 6
jne 0x475984
push dword [eax + 0x258]
mov edx, 0x10
cmp ebp, edx
push ebx
cmova ebp, edx
push ebp
push dword [esp + 0x24]
push edi
push esi
call ecx
add esp, 0x18
cmp eax, 4
ja case.0x4754c9.0
jmp dword [eax*4 + 0x4759ec]
push dword [ebx + 0x274]
push str.HMAC
push dword [ebx]
call fcn.004c1c50
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
je 0x47544a
push eax
call fcn.004c2170
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x47544a
push dword [esp + 0x10]
call fcn.004c1c80
add esp, 4
mov dword [esp + 0x30], edi
call fcn.004ac600
mov esi, eax
test esi, esi
jne 0x475526
xor ebx, ebx
jmp 0x475908
mov edx, dword [ebx + 0x160]
test edx, edx
jne 0x4756b3
cmp dword [ebx + 0x15c], edx
jne 0x47568f
mov ecx, dword [esp + 0x18]
lea edx, [ebx + 0x148]
mov dword [esp + 0x10], 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4756d4
add ecx, 4
add edx, 4
sub dword [esp + 0x10], 4
jae 0x475552
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x828]
push dword [eax + 0x274]
push str.AES_256_CBC
push dword [eax]
call fcn.004ac9f0
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
je 0x47567d
cmp dword [edi], 0
mov eax, dword [ebx + 0x158]
mov dword [esp + 0x2c], eax
je 0x475601
push 0
push str.SHA256
lea eax, [esp + 0x70]
push str.digest
push eax
call fcn.004c0be0
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x50], xmm0
mov eax, dword [eax + 0x10]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x8c]
push eax
call fcn.004c0a60
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x68], xmm0
mov eax, dword [eax + 0x10]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x54]
push eax
push 0x20
push dword [esp + 0x48]
push dword [edi]
call fcn.004c2320
add esp, 0x24
test eax, eax
jne 0x47561c
mov eax, dword [esp + 0x2c]
cmp dword [edi + 4], 0
je 0x47567d
push str.SHA256
push 0x20
push eax
push edi
call fcn.0048a3f0
add esp, 0x10
test eax, eax
jle 0x47567d
mov eax, dword [esp + 0x18]
add eax, 0x10
push eax
mov eax, dword [ebx + 0x158]
mov ebx, dword [esp + 0x14]
add eax, 0x20
push eax
push 0
push ebx
push esi
call fcn.004acf10
add esp, 0x14
test eax, eax
jle 0x475681
push ebx
call fcn.004aca20
mov eax, dword [esp + 0x24]
add esp, 4
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 0x64]
test byte [eax + 0x30], 8
jne 0x4756ef
mov eax, dword [ecx]
cmp eax, 0x304
jl 0x4756ef
cmp eax, 0x10000
je 0x4756ef
mov dword [esp + 0x28], 1
jmp 0x4756ef
mov ebx, dword [esp + 0x10]
push ebx
call fcn.004aca20
add esp, 4
jmp 0x475903
push 0
push edi
call fcn.0048a390
mov ecx, dword [esp + 0x20]
add esp, 4
push eax
push esi
lea eax, [ecx + 0x10]
push eax
mov eax, dword [ebx + 0x15c]
push ecx
push dword [esp + 0x34]
call eax
jmp 0x4756c7
mov ecx, dword [esp + 0x18]
push 0
push dword [edi]
push esi
lea eax, [ecx + 0x10]
push eax
push ecx
push dword [esp + 0x34]
call edx
add esp, 0x18
test eax, eax
js 0x475903
jne 0x4756de
mov ebx, 4
jmp 0x475908
xor ecx, ecx
mov edx, 1
cmp eax, 2
cmove ecx, edx
mov dword [esp + 0x28], ecx
mov eax, dword [edi]
test eax, eax
je 0x4756fd
push eax
call fcn.004c2150
jmp 0x47570d
cmp dword [edi + 4], 0
je 0x475903
push edi
call fcn.0048a440
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x475903
push esi
call fcn.004aa7b0
add eax, 0x10
add esp, 4
add eax, ebx
cmp ebp, eax
ja 0x475736
mov ebx, 4
jmp 0x475908
mov eax, dword [edi]
sub ebp, ebx
test eax, eax
je 0x47574b
push ebp
push dword [esp + 0x1c]
push eax
call fcn.004c2360
jmp 0x475760
cmp dword [edi + 4], 0
je 0x475903
push ebp
push dword [esp + 0x1c]
push edi
call fcn.0048a450
add esp, 0xc
test eax, eax
jle 0x475903
mov eax, dword [edi]
test eax, eax
je 0x475788
push 0x40
push 0
lea ecx, [esp + 0x98]
push ecx
push eax
call fcn.004c2230
add esp, 0x10
jmp 0x4757a5
cmp dword [edi + 4], 0
je 0x475903
push 0
lea eax, [esp + 0x94]
push eax
push edi
call fcn.0048a3a0
add esp, 0xc
test eax, eax
jle 0x475903
push ebx
mov ebx, dword [esp + 0x1c]
lea eax, [ebx + ebp]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.00401390
add esp, 0xc
test eax, eax
je 0x4757d4
mov ebx, 4
jmp 0x475908
push esi
call fcn.004aa7b0
add eax, 0x10
add eax, ebx
push esi
mov dword [esp + 0x2c], eax
call fcn.004aa7b0
mov ecx, 0xfffffff0
sub ecx, eax
push 0
add ebp, ecx
push 0x66ed1f
push ebp
call fcn.004a4e90
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4758f3
push ebp
push dword [esp + 0x28]
lea eax, [esp + 0x24]
push eax
push edi
push esi
call fcn.004acf40
add esp, 0x14
test eax, eax
jle 0x4758f3
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x20]
add eax, edi
push eax
push esi
call fcn.004acc80
add esp, 0xc
test eax, eax
jg 0x47585b
push 0
push 0x66ed1f
push edi
call fcn.004a4ec0
add esp, 0xc
mov ebx, 4
jmp 0x475908
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0x34]
push eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x28]
push eax
push 0
mov dword [esp + 0x30], edi
call fcn.004968d0
push 0
mov ecx, edi
mov dword [esp + 0x24], eax
sub ecx, dword [esp + 0x34]
add dword [esp + 0x2c], ecx
push 0x66ed1f
push edi
call fcn.004a4ec0
mov edi, dword [esp + 0x2c]
add esp, 0x18
test edi, edi
je 0x4758e7
cmp dword [esp + 0x1c], 0
je 0x4758b9
push edi
call fcn.0047a480
add esp, 4
xor edi, edi
mov dword [esp + 0x14], edi
lea ebx, [edi + 4]
jmp 0x47590a
mov ebx, dword [esp + 0xe8]
test ebx, ebx
je 0x4758de
push ebx
push dword [esp + 0x3c]
lea eax, [edi + 0x24c]
push eax
call fcn.005c9000
add esp, 0xc
mov dword [edi + 0x248], ebx
mov ebx, dword [esp + 0x28]
add ebx, 5
jmp 0x47590a
call fcn.004a2aa0
mov ebx, 4
jmp 0x47590a
push 0
push 0x66ed1f
push edi
call fcn.004a4ec0
add esp, 0xc
mov ebx, 1
xor edi, edi
push esi
call fcn.004ac5a0
mov esi, dword [esp + 0x34]
push dword [esi]
call fcn.004c2110
push esi
call fcn.0048a3e0
push 0
push 0x66ed1f
push esi
call fcn.004a4ec0
mov esi, dword [esp + 0x38]
add esp, 0x18
jmp 0x475477
push edi
mov ebx, 2
call fcn.0047a480
add esp, 4
xor ecx, ecx
jmp 0x475988
cmp ebx, 3
je 0x47595b
mov eax, 4
cmp ebx, eax
cmovne ebx, eax
push edi
call fcn.0047a480
add esp, 4
xor ecx, ecx
jmp 0x475988
cmp ebx, 5
je 0x475972
cmp ebx, 6
jne case.0x4754c9.0
xor ebx, ebx
cmp eax, 3
setne bl
add ebx, 5
jmp 0x475984
mov ebx, 1
mov ecx, dword [esp + 0x14]
cmp dword [esi + 0x8f0], 0
je 0x4759ad
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x64]
test byte [eax + 0x30], 8
jne 0x4759c8
mov eax, dword [edx]
cmp eax, 0x304
jl 0x4759c8
cmp eax, 0x10000
je 0x4759c8
mov eax, ebx
sub eax, 3
je 0x4759be
sub eax, 1
je 0x4759be
sub eax, 2
jne 0x4759c8
mov dword [esi + 0x8bc], 1
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
mov eax, ebx
mov ecx, dword [esp + 0xc4]
pop ebx
xor ecx, esp
call fcn.005c77ea
add esp, 0xc4
ret