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

Disassembly:
mov eax, 0xa4
call fcn.006df660
mov eax, dword [0x7f9c40]
xor eax, esp
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0xa8]
mov eax, dword [esp + 0xc4]
push ebx
mov ebx, dword [esp + 0xc4]
push ebp
xor ebp, ebp
mov dword [esp + 0x14], ecx
push esi
xor esi, esi
mov dword [esp + 0x50], edx
push edi
mov edi, dword [esp + 0xcc]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x14], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x6c], ebp
cmp dword [esp + 0xc0], esi
jne 0x653411
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x38], eax
jmp 0x653415
mov dword [esp + 0x38], esi
mov dword [ebx], esi
mov ecx, dword [ecx + 0x2c]
test ecx, ecx
jne 0x653467
test edi, edi
jne 0x653438
cmp dword [esp + 0xc8], 0x800
sbb edi, edi
and edi, 0xffffffa0
add edi, 0x100
cmp edi, 0xa0
jne 0x653447
mov ecx, str.SHA1
jmp 0x653467
cmp edi, 0xe0
jne 0x653456
mov ecx, str.SHA_224
jmp 0x653467
cmp edi, 0x100
jne 0x653e25
mov ecx, str.SHA_256
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x30]
push eax
push ecx
push edx
call fcn.005b38b0
mov ebp, eax
add esp, 0xc
mov esi, ebp
test ebp, ebp
je 0x653da3
push ebp
call fcn.005cd640
add esp, 4
mov dword [esp + 0x3c], eax
test eax, eax
jle 0x653da3
mov edx, dword [esp + 0xc8]
shl eax, 3
test edi, edi
cmovne eax, edi
mov ebx, eax
mov dword [esp + 0x44], eax
shr ebx, 3
cmp edx, eax
jbe 0x653d97
mov ecx, dword [esp + 0xc4]
cmp ecx, 1
jne 0x65350e
cmp edx, 0x400
jne 0x6534d7
cmp eax, 0xa0
jne 0x6534ed
jmp 0x65354f
cmp edx, 0x800
jne 0x6534ed
cmp eax, 0xe0
je 0x65354f
cmp eax, 0x100
je 0x65354f
call fcn.005cc9b0
push 0x77b62c
push 0x4d
push str.crypto_ffc_ffc_params_generate.c
call fcn.005ccab0
push 0
push 0x7f
push 5
jmp 0x653d8f
test ecx, ecx
jne 0x653d97
cmp edx, 0xc00
jb 0x653527
cmp eax, 0x100
jb 0x65352f
jmp 0x65354f
cmp edx, 0x800
jb 0x653538
cmp eax, 0xe0
jb 0x653544
jmp 0x65354f
cmp edx, 0x400
jb 0x653d73
cmp eax, 0xa0
jb 0x653d73
call fcn.005b3820
mov dword [esp + 0x6c], eax
mov esi, ebp
test eax, eax
je 0x653da3
push dword [esp + 0x54]
call fcn.0060f650
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
test edi, edi
je 0x653da5
push edi
call fcn.0060f720
push edi
call fcn.0060f4d0
push edi
mov dword [esp + 0x4c], eax
call fcn.0060f4d0
push edi
mov dword [esp + 0x64], eax
call fcn.0060f4d0
push edi
mov dword [esp + 0x6c], eax
call fcn.0060f4d0
push edi
mov dword [esp + 0x60], eax
call fcn.0060f4d0
add esp, 0x18
mov dword [esp + 0x4c], eax
test eax, eax
je 0x653da5
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x14]
test eax, eax
cmove eax, dword [esp + 0x3c]
xor edi, edi
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x10]
test eax, eax
cmovne edi, eax
cmp dword [esp + 0xc0], 0
mov dword [esp + 0x30], edi
je 0x653611
xor ecx, ecx
cmp dword [esi + 4], ecx
sete cl
xor eax, eax
cmp dword [esi], eax
sete al
cmp eax, ecx
je 0x653659
mov eax, dword [esp + 0x18]
mov dword [eax], 0x800
mov esi, ebp
mov edi, dword [esp + 0x10]
jmp 0x653da5
mov ecx, dword [esp + 0x38]
test cl, 1
je 0x653639
test edi, edi
je 0x653624
cmp dword [esi + 0x18], 0
jge 0x653639
mov eax, dword [esp + 0x18]
mov esi, ebp
mov edi, dword [esp + 0x10]
mov dword [eax], 0x200
jmp 0x653da5
test cl, 2
je 0x65365d
cmp dword [esi + 8], 0
jne 0x65365d
mov eax, dword [esp + 0x18]
mov esi, ebp
mov edi, dword [esp + 0x10]
mov dword [eax], 0x400
jmp 0x653da5
mov ecx, dword [esp + 0x38]
mov eax, dword [esi]
mov dword [esp + 0x20], eax
test eax, eax
je 0x653678
test cl, 1
jne 0x653678
mov ebx, dword [esi + 4]
mov dword [esp + 0x24], ebx
jmp 0x653a12
mov esi, dword [esp + 0x10]
push esi
call fcn.0060f4d0
push esi
mov dword [esp + 0x28], eax
call fcn.0060f4d0
add esp, 8
mov dword [esp + 0x24], eax
mov esi, ebp
test eax, eax
je 0x653608
mov ecx, dword [esp + 0x2c]
lea eax, [ecx*8]
cmp eax, dword [esp + 0x44]
jae 0x6536c1
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov dword [eax], 0x40000
jmp 0x653da5
push 0x283
push str.crypto_ffc_ffc_params_generate.c
push ecx
call fcn.005a9b70
add esp, 0xc
mov dword [esp + 0x50], eax
mov esi, ebp
test eax, eax
je 0x653608
test edi, edi
jne 0x653728
cmp dword [esp + 0xc0], edi
jne 0x653702
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov dword [eax], 0x200
jmp 0x653da5
push 0x28e
push str.crypto_ffc_ffc_params_generate.c
push dword [esp + 0x34]
call fcn.005a9b70
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x30], ecx
mov esi, ebp
test ecx, ecx
je 0x653608
cmp dword [esp + 0xc0], 0
mov edx, dword [esp + 0xc8]
mov edi, dword [esp + 0x1c]
lea ecx, [edx*4 - 1]
mov dword [esp + 0x44], ecx
jne 0x653768
mov eax, dword [edi + 0x18]
cmp eax, ecx
jle 0x653764
mov eax, dword [esp + 0x18]
mov esi, ebp
mov edi, dword [esp + 0x10]
mov dword [eax], 0x1000
jmp 0x653da5
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x3c]
mov esi, ebp
lea ecx, [eax*8]
lea eax, [edx - 1]
xor edx, edx
div ecx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0xc8]
dec eax
push eax
call fcn.005ae820
push eax
push dword [esp + 0x50]
call fcn.005fbe90
add esp, 0xc
test eax, eax
je 0x653608
mov eax, dword [edi + 0x10]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
nop
push ebp
call fcn.005cd640
push dword [esp + 0x14]
mov edi, eax
call fcn.0060f820
push dword [esp + 0x3c]
mov dword [esp + 0x54], eax
push 0
push dword [esp + 0x38]
call fcn.00679c80
add esp, 0x14
test eax, eax
je 0x653606
nop
inc dword [esp + 0x34]
cmp esi, dword [esp + 0x3c]
je 0x653805
push 0
push dword [esp + 0x30]
push esi
push dword [esp + 0x54]
call fcn.005bfa50
add esp, 0x10
test eax, eax
jle 0x653606
push 0
push ebp
push 0
lea eax, [esp + 0x7c]
push eax
push dword [esp + 0x3c]
push esi
call fcn.005b2ba0
add esp, 0x18
test eax, eax
je 0x653606
lea esi, [esp + 0x70]
cmp edi, ebx
jle 0x653834
mov eax, edi
sub eax, ebx
add esi, eax
jmp 0x65384c
jge 0x65384c
mov eax, ebx
sub eax, edi
push eax
lea eax, [esp + 0x74]
add eax, edi
push 0
push eax
call fcn.006e1410
add esp, 0xc
push dword [esp + 0x24]
or byte [esi], 0x80
or byte [esi + ebx - 1], 1
push ebx
push esi
call fcn.005ada70
add esp, 0xc
test eax, eax
je 0x653606
push dword [esp + 0x28]
mov esi, dword [esp + 0x28]
push dword [esp + 0x14]
push esi
call fcn.00679cd0
add esp, 0xc
test eax, eax
jg 0x6538bd
mov esi, dword [esp + 0x30]
cmp esi, dword [esp + 0x3c]
je 0x65398c
test eax, eax
jne 0x653606
push dword [esp + 0x34]
push eax
push dword [esp + 0x30]
call fcn.00679c80
add esp, 0xc
test eax, eax
jne 0x6537e0
mov edi, dword [esp + 0x10]
mov esi, ebp
jmp 0x653da5
cmp dword [esp + 0xc0], 0
mov eax, dword [esp + 0x34]
mov dword [esp + 0x34], eax
jne 0x6538e7
mov eax, dword [esp + 0x1c]
push dword [eax + 4]
push esi
call fcn.005add30
add esp, 8
test eax, eax
jne 0x65399e
mov esi, dword [esp + 0x28]
push 0
push 2
push esi
call fcn.00679c80
add esp, 0xc
test eax, eax
je 0x653606
push 0
push 3
push esi
call fcn.00679c80
add esp, 0xc
test eax, eax
je 0x653606
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
push edi
push esi
push dword [esp + 0x58]
call fcn.006e0e90
push dword [esp + 0x24]
lea eax, [esp + 0x6c]
push eax
push dword [esp + 0x3c]
push dword [esp + 0xe0]
push dword [esp + 0x3c]
push dword [esp + 0x44]
push edi
push dword [esp + 0x78]
mov edi, dword [esp + 0x3c]
push dword [esp + 0x8c]
push dword [esp + 0x74]
push ebp
push edi
call fcn.00652700
add esp, 0x3c
test eax, eax
jg 0x6539b3
js 0x653985
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x3c], eax
cmp esi, eax
jne 0x6537b0
mov eax, dword [esp + 0x18]
mov dword [eax], 1
mov esi, ebp
jmp 0x653da5
mov eax, dword [esp + 0x18]
or dword [eax], 0x10
mov edi, dword [esp + 0x10]
mov esi, ebp
jmp 0x653da5
mov eax, dword [esp + 0x18]
mov esi, ebp
mov edi, dword [esp + 0x10]
mov dword [eax], 0x4000
jmp 0x653da5
push 1
push 2
push dword [esp + 0x30]
mov esi, ebp
call fcn.00679c80
add esp, 0xc
test eax, eax
je 0x653da5
cmp dword [esp + 0xc0], 0
jne 0x6539fc
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x5c], eax
jne 0x653985
mov eax, dword [esp + 0x1c]
push dword [eax]
push dword [esp + 0x24]
call fcn.005add30
add esp, 8
test eax, eax
je 0x6539fc
jmp 0x653da5
mov eax, dword [esp + 0x38]
and al, 3
cmp al, 1
je 0x653d4b
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x24]
call fcn.005f90d0
mov dword [esp + 0x14], eax
mov esi, ebp
test eax, eax
je 0x653c37
push dword [esp + 0x10]
push dword [esp + 0x24]
push eax
call fcn.005f9160
add esp, 0xc
test eax, eax
je 0x653c37
test byte [esp + 0x38], 2
je 0x653a71
push dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push dword [esp + 0x50]
push dword [eax + 8]
push ebx
push dword [esp + 0x30]
push dword [esp + 0x28]
push dword [esp + 0x28]
call fcn.00677ff0
add esp, 0x1c
test eax, eax
je 0x653c37
call fcn.005ae820
mov esi, dword [esp + 0x54]
push eax
push dword [esp + 0x24]
push esi
call fcn.0060f8c0
add esp, 0xc
test eax, eax
je 0x653c35
push dword [esp + 0x10]
push ebx
push esi
push 0
push dword [esp + 0x68]
call fcn.006370d0
add esp, 0x14
test eax, eax
je 0x653c35
test edi, edi
je 0x653c44
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x60], eax
cmp eax, 0xffffffff
je 0x653c44
push ebp
mov dword [esp + 0x6c], 1
call fcn.005cd640
add esp, 4
mov dword [esp + 0x48], eax
test eax, eax
jle 0x653be8
call fcn.005b3820
mov esi, eax
test esi, esi
je 0x653be8
mov ebx, 1
nop dword [eax]
mov eax, dword [esp + 0x60]
mov byte [esp + 0x70], al
mov eax, ebx
push 0
sar eax, 8
push ebp
push esi
mov byte [esp + 0x7d], al
mov byte [esp + 0x7e], bl
call fcn.005b3010
add esp, 0xc
test eax, eax
je 0x653bdf
push dword [esp + 0x2c]
push edi
push esi
call fcn.005b3050
add esp, 0xc
test eax, eax
je 0x653bdf
push 4
push str.ggenffc_validate_LN
push esi
call fcn.005b3050
add esp, 0xc
test eax, eax
je 0x653bdf
push 3
lea eax, [esp + 0x74]
push eax
push esi
call fcn.005b3050
add esp, 0xc
test eax, eax
je 0x653bdf
push 0
lea eax, [esp + 0x74]
push eax
push esi
call fcn.005b2ee0
add esp, 0xc
test eax, eax
je 0x653bdf
push dword [esp + 0x4c]
lea eax, [esp + 0x74]
push dword [esp + 0x4c]
push eax
call fcn.005ada70
add esp, 0xc
test eax, eax
je 0x653bdf
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x28]
push dword [esp + 0x64]
push dword [esp + 0x5c]
push dword [esp + 0x54]
call fcn.0062f0e0
add esp, 0x18
test eax, eax
je 0x653bdf
call fcn.005ae820
push eax
push dword [esp + 0x44]
call fcn.005add30
add esp, 8
test eax, eax
jg 0x653c01
inc ebx
cmp ebx, 0xffff
jle 0x653b00
push esi
call fcn.005b3790
add esp, 4
mov eax, dword [esp + 0x18]
mov esi, ebp
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov dword [eax], 0x400
jmp 0x653da7
push esi
call fcn.005b3790
add esp, 4
cmp dword [esp + 0xc0], 0
jne 0x653c7f
mov eax, dword [esp + 0x1c]
push dword [eax + 8]
push dword [esp + 0x44]
call fcn.005add30
add esp, 8
test eax, eax
je 0x653c7f
mov eax, dword [esp + 0x18]
mov dword [eax], 0x8000
mov esi, ebp
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
jmp 0x653da7
cmp dword [esp + 0xc0], 0
je 0x653c83
lea eax, [esp + 0x64]
mov esi, ebp
push eax
push dword [esp + 0x58]
push dword [esp + 0x60]
push dword [esp + 0x2c]
push dword [esp + 0x5c]
push dword [esp + 0x54]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.00652c20
add esp, 0x20
test eax, eax
je 0x653c37
jmp 0x653c83
mov ebx, dword [esp + 0x24]
push 1
push 3
push dword [esp + 0x30]
mov esi, ebp
call fcn.00679c80
add esp, 0xc
test eax, eax
je 0x653c37
cmp dword [esp + 0xc0], 0
je 0x653d47
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
cmp dword [esp + 0x20], eax
je 0x653cc7
push eax
call fcn.005ae050
push dword [esp + 0x24]
call fcn.005adf70
add esp, 8
mov dword [esi], eax
mov eax, dword [esi + 4]
cmp ebx, eax
je 0x653ce0
push eax
call fcn.005ae050
push ebx
call fcn.005adf70
add esp, 8
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
mov ebx, dword [esp + 0x40]
cmp ebx, eax
je 0x653cfd
push eax
call fcn.005ae050
push ebx
call fcn.005adf70
add esp, 8
mov dword [esi + 8], eax
cmp dword [esi], 0
je 0x653c35
cmp dword [esi + 4], 0
je 0x653c35
cmp dword [esi + 8], 0
je 0x653c35
push dword [esp + 0x5c]
mov ebx, dword [esp + 0x20]
mov esi, ebp
push dword [esp + 0x30]
push edi
push ebx
call fcn.00642ab0
mov edi, dword [esp + 0x20]
add esp, 0x10
test eax, eax
je 0x653c3b
mov eax, dword [esp + 0x64]
mov dword [ebx + 0x24], eax
jmp 0x653d4b
mov edi, dword [esp + 0x10]
test byte [esp + 0x38], 2
je 0x653d66
cmp dword [esp + 0x68], 0
jne 0x653d66
mov esi, ebp
mov ebx, 2
mov ebp, dword [esp + 0x14]
jmp 0x653da9
mov esi, ebp
mov ebx, 1
mov ebp, dword [esp + 0x14]
jmp 0x653da9
call fcn.005cc9b0
push 0x77b62c
push 0x57
push str.crypto_ffc_ffc_params_generate.c
call fcn.005ccab0
push 0
push 0x72
push 0xa
call fcn.005ccb60
add esp, 0x18
mov eax, dword [esp + 0x18]
mov esi, ebp
mov dword [eax], 0x20000
xor edi, edi
xor ebp, ebp
xor ebx, ebx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
cmp ecx, dword [eax + 0x10]
je 0x653dc9
push 0x31a
push str.crypto_ffc_ffc_params_generate.c
push ecx
call fcn.005a9ba0
add esp, 0xc
push 0x31b
push str.crypto_ffc_ffc_params_generate.c
push dword [esp + 0x58]
call fcn.005a9ba0
add esp, 0xc
test edi, edi
je 0x653dec
push edi
call fcn.0060f3d0
add esp, 4
push edi
call fcn.0060f440
push ebp
call fcn.005f9080
push dword [esp + 0x74]
call fcn.005b3790
push esi
call fcn.005b38e0
mov ecx, dword [esp + 0xc0]
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.006def69
add esp, 0xa4
ret
mov dword [ebx], 0x20
xor edi, edi
jmp 0x653da7