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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov ebx, dword [esp + 0xa0]
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x546190
mov edx, dword [esp + 0xac]
mov dword [esp + 0xc], edx
mov ecx, dword [esp + 0xa8]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0xa4]
mov dword [esp + 4], edx
mov dword [esp], ebx
call eax
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.005237d0
mov esi, eax
test eax, eax
je 0x546380
mov dword [esp], eax
call fcn.00523a50
mov dword [esp], esi
call fcn.00523c50
mov dword [esp + 0x3c], eax
mov dword [esp], esi
call fcn.00523c50
mov ebp, eax
mov dword [esp], esi
call fcn.00523c50
mov dword [esp + 0x38], eax
mov dword [esp], esi
call fcn.00523c50
test eax, eax
je 0x546329
mov eax, dword [esp + 0xa4]
inc eax
mov edx, eax
shr edx, 0x1f
add edx, eax
sar edx, 1
mov dword [esp + 0x30], edx
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x54654f
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x546564
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x546579
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x54658e
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x5465a3
mov edi, dword [ebx + 0x24]
test edi, edi
je 0x5465b8
mov ecx, dword [ebx + 0x28]
test ecx, ecx
je 0x5465cd
mov edx, dword [ebx + 0x2c]
test edx, edx
je 0x54653a
mov ecx, dword [esp + 0xa8]
mov dword [esp + 4], ecx
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call fcn.00530d60
xor edi, edi
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x38]
jmp 0x546274
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0xac]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 0x30]
mov dword [esp + 4], ecx
mov eax, dword [ebx + 0x1c]
mov dword [esp], eax
call fcn.0053cde0
test eax, eax
je 0x546325
call fcn.00530a20
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.0053de60
test eax, eax
je 0x546325
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], ebp
call fcn.005246a0
test eax, eax
je 0x546325
cmp dword [ebp + 4], 1
jne 0x5462fb
mov eax, dword [ebp]
cmp dword [eax], 1
je 0x5463c0
lea edx, [edi + 1]
mov dword [esp + 0x28], edx
mov dword [esp + 8], edi
mov dword [esp + 4], 2
mov ecx, dword [esp + 0xac]
mov dword [esp], ecx
call fcn.0053c590
test eax, eax
jne 0x546270
mov esi, dword [esp + 0x34]
mov dword [esp + 0x10], 0xdf
mov dword [esp + 0xc], str.rsa_gen.c
mov dword [esp + 8], 3
mov dword [esp + 4], 0x81
mov dword [esp], 4
call fcn.005283c0
xor eax, eax
mov dword [esp], esi
mov dword [esp + 0x24], eax
call fcn.00523bc0
mov dword [esp], esi
call fcn.00523880
mov eax, dword [esp + 0x24]
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], 0xdf
mov dword [esp + 0xc], str.rsa_gen.c
mov dword [esp + 8], 3
mov dword [esp + 4], 0x81
mov dword [esp], 4
call fcn.005283c0
xor eax, eax
jmp 0x546181
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x5462fb
mov esi, dword [esp + 0x34]
mov dword [esp + 8], 0
mov dword [esp + 4], 3
mov edx, dword [esp + 0xac]
mov dword [esp], edx
call fcn.0053c590
test eax, eax
je 0x546329
mov ecx, dword [esp + 0xa4]
sub ecx, dword [esp + 0x30]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], esi
mov esi, ebx
mov ebx, dword [esp + 0xac]
mov edx, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov eax, dword [esi + 0x20]
mov dword [esp], eax
call fcn.0053cde0
test eax, eax
je 0x5465e2
mov eax, dword [esi + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [esp], eax
call fcn.00531660
test eax, eax
jne 0x5465eb
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
mov eax, dword [esi + 0x20]
mov dword [esp], eax
call fcn.0053cde0
test eax, eax
je 0x5465e2
mov eax, dword [esi + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [esp], eax
call fcn.00531660
test eax, eax
jne 0x5465eb
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov edx, dword [esp + 0x2c]
mov dword [esp + 4], edx
mov eax, dword [esi + 0x20]
mov dword [esp], eax
call fcn.0053cde0
test eax, eax
je 0x5465e2
mov eax, dword [esi + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [esp], eax
call fcn.00531660
test eax, eax
jne 0x5465eb
mov esi, dword [esp + 0x28]
mov dword [esp + 0x10], 0x9f
mov dword [esp + 0xc], str.rsa_gen.c
mov dword [esp + 8], 0x78
mov dword [esp + 4], 0x81
mov dword [esp], 4
call fcn.005283c0
xor eax, eax
jmp 0x546357
call fcn.00530c80
mov dword [ebx + 0x2c], eax
test eax, eax
jne 0x546246
jmp 0x546329
call fcn.00530c80
mov dword [ebx + 0x10], eax
test eax, eax
jne 0x5461f9
jmp 0x546329
call fcn.00530c80
mov dword [ebx + 0x18], eax
test eax, eax
jne 0x546204
jmp 0x546329
call fcn.00530c80
mov dword [ebx + 0x14], eax
test eax, eax
jne 0x54620f
jmp 0x546329
call fcn.00530c80
mov dword [ebx + 0x1c], eax
test eax, eax
jne 0x54621a
jmp 0x546329
call fcn.00530c80
mov dword [ebx + 0x20], eax
test eax, eax
jne 0x546225
jmp 0x546329
call fcn.00530c80
mov dword [ebx + 0x24], eax
test eax, eax
jne 0x546230
jmp 0x546329
call fcn.00530c80
mov dword [ebx + 0x28], eax
test eax, eax
jne 0x54623b
jmp 0x546329
mov esi, dword [esp + 0x28]
jmp 0x546329
call fcn.00530a20
mov dword [esp + 8], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.0053de60
test eax, eax
je 0x5465e2
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.005246a0
test eax, eax
je 0x5465e2
cmp dword [ebp + 4], 1
jne 0x54663c
mov eax, dword [ebp]
cmp dword [eax], 1
je 0x546668
lea edx, [edi + 1]
mov dword [esp + 0x30], edx
mov dword [esp + 8], edi
mov dword [esp + 4], 2
mov dword [esp], ebx
call fcn.0053c590
test eax, eax
je 0x5465e2
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
jmp 0x546414
cmp dword [ebp + 0xc], 0
jne 0x54663c
mov ebx, esi
mov esi, dword [esp + 0x28]
mov dword [esp + 8], 1
mov dword [esp + 4], 3
mov ecx, dword [esp + 0xac]
mov dword [esp], ecx
call fcn.0053c590
test eax, eax
je 0x546329
mov eax, dword [ebx + 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp], eax
call fcn.00531660
test eax, eax
jns 0x5466bd
mov eax, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x20]
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x20], eax
mov dword [esp + 0xc], esi
mov eax, dword [ebx + 0x20]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call fcn.0053abc0
test eax, eax
je 0x546329
call fcn.00530a20
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.0053de60
test eax, eax
je 0x546329
call fcn.00530a20
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.0053de60
test eax, eax
je 0x546329
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.0053abc0
test eax, eax
je 0x546329
test byte [ebx + 0x3d], 1
jne 0x54678d
mov edx, dword [esp + 0x3c]
mov eax, dword [edx]
mov dword [esp + 0x44], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x48], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x4c], eax
mov eax, dword [edx + 0xc]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x54]
and eax, 1
mov edx, dword [edx + 0x10]
and edx, 0xfffffffe
or eax, edx
or eax, 6
mov dword [esp + 0x54], eax
lea eax, [esp + 0x44]
mov dword [esp + 0x3c], eax
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call fcn.00524870
test eax, eax
je 0x546329
test byte [ebx + 0x3d], 1
jne 0x5468b1
mov edx, dword [ebx + 0x18]
mov eax, dword [edx]
mov dword [esp + 0x58], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x5c], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x60], eax
mov eax, dword [edx + 0xc]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x68]
and eax, 1
mov edx, dword [edx + 0x10]
and edx, 0xfffffffe
or eax, edx
or eax, 6
mov dword [esp + 0x68], eax
lea edi, [esp + 0x58]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebp
mov dword [esp + 8], edi
mov eax, dword [ebx + 0x24]
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.00523e50
test eax, eax
je 0x546329
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov eax, dword [ebx + 0x28]
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.00523e50
test eax, eax
je 0x546329
test byte [ebx + 0x3d], 1
jne 0x5468b9
mov edx, dword [ebx + 0x1c]
mov eax, dword [edx]
mov dword [esp + 0x6c], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x70], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x74], eax
mov eax, dword [edx + 0xc]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x7c]
and eax, 1
mov edx, dword [edx + 0x10]
and edx, 0xfffffffe
or eax, edx
or eax, 6
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call fcn.00524870
test eax, eax
je 0x546329
mov eax, 1
jmp 0x546357
mov edi, dword [ebx + 0x18]
jmp 0x5467f5
mov eax, dword [ebx + 0x1c]
jmp 0x546885