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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x78]
mov edx, dword [esp + 0x70]
test edx, edx
je 0x54107f
test eax, eax
je 0x54108c
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.005c63c0
test eax, eax
je 0x541075
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.005c6330
mov dword [esp + 0x24], eax
test eax, eax
je 0x5410b2
mov eax, ebx
and eax, 8
mov dword [esp + 0x30], eax
mov eax, ebx
and eax, 4
mov dword [esp + 0x2c], eax
and ebx, 1
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.004ec550
cmp dword [esp + 0x20], eax
jge 0x54107f
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.004ec570
mov ecx, dword [eax + 8]
mov dword [esp + 0x28], ecx
mov edi, dword [eax + 4]
mov dword [esp + 4], 0x2e
mov dword [esp], edi
call sub.msvcrt.dll_strrchr
test eax, eax
je 0x541020
sub eax, edi
mov esi, eax
xor ebx, ebx
jmp 0x540ccf
mov dword [esp + 4], ebx
mov eax, dword [0x6e7710]
mov dword [esp], eax
call fcn.004ec570
mov ebp, eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.msvcrt.dll_strncmp
test eax, eax
je 0x540e60
inc ebx
mov eax, dword [0x6e7710]
mov dword [esp], eax
call fcn.004ec550
cmp ebx, eax
jl 0x540ca0
mov ebx, dword [esp + 0x30]
test ebx, ebx
je 0x540d60
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jne 0x540d40
mov dword [esp + 0x10], 0xd4
mov dword [esp + 0xc], str.conf_mod.c
mov dword [esp + 8], 0x71
mov dword [esp + 4], 0x76
mov dword [esp], 0xe
call fcn.004f0560
mov dword [esp + 8], edi
mov dword [esp + 4], str.module
mov dword [esp], 2
call fcn.004f0ed0
lea esi, [esi]
lea edi, [edi]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x541007
inc dword [esp + 0x20]
jmp 0x540c40
mov dword [esp + 8], str.path
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.005c63c0
mov esi, eax
test eax, eax
jne 0x540d89
call fcn.004f0660
mov esi, edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 0
call fcn.005a8880
mov ebx, eax
test eax, eax
je 0x541120
mov dword [esp + 4], str.OPENSSL_init
mov dword [esp], eax
call fcn.005a84c0
mov dword [esp + 0x38], eax
test eax, eax
je 0x541119
mov dword [esp + 4], str.OPENSSL_finish
mov dword [esp], ebx
call fcn.005a84c0
mov dword [esp + 0x3c], eax
mov ebp, dword [0x6e7710]
test ebp, ebp
je 0x541127
mov dword [esp + 8], 0x11d
mov dword [esp + 4], str.conf_mod.c
mov dword [esp], 0x18
call fcn.004b7b20
mov ebp, eax
test eax, eax
je 0x5410be
mov dword [eax], ebx
mov dword [esp], edi
call fcn.004e59a0
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], 0
mov dword [esp + 4], ebp
mov eax, dword [0x6e7710]
mov dword [esp], eax
call fcn.004ec210
test eax, eax
je 0x5410b6
lea esi, [esi]
lea edi, [edi]
mov dword [esp + 8], 0x154
mov dword [esp + 4], str.conf_mod.c
mov dword [esp], 0x14
call fcn.004b7b20
mov esi, eax
test eax, eax
je 0x540f67
mov dword [esi], ebp
mov dword [esp], edi
call fcn.004e59a0
mov dword [esi + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.004e59a0
mov dword [esi + 8], eax
mov dword [esi + 0x10], 0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x540f53
test eax, eax
je 0x540f48
mov eax, dword [ebp + 8]
test eax, eax
je 0x54102f
mov edx, dword [esp + 0x70]
mov dword [esp + 4], edx
mov dword [esp], esi
call eax
test eax, eax
jle 0x541060
mov ebx, 1
mov eax, dword [0x6e770c]
test eax, eax
je 0x54103e
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004ec210
test eax, eax
je 0x540f06
inc dword [ebp + 0x10]
jmp 0x540d4c
mov dword [esp + 0x10], 0x172
mov dword [esp + 0xc], str.conf_mod.c
mov dword [esp + 8], 0x41
mov dword [esp + 4], 0x73
mov dword [esp], 0xe
call fcn.004f0560
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x540f41
test ebx, ebx
jne 0x54106b
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x540f50
mov dword [esp], ecx
call fcn.004b8030
mov eax, dword [esi + 8]
test eax, eax
je 0x540f5f
mov dword [esp], eax
call fcn.004b8030
mov dword [esp], esi
call fcn.004b8030
mov edx, dword [esp + 0x2c]
test edx, edx
jne 0x540d40
mov dword [esp + 0x10], 0xdf
mov dword [esp + 0xc], str.conf_mod.c
mov dword [esp + 8], 0x6d
mov dword [esp + 4], 0x76
mov dword [esp], 0xe
call fcn.004f0560
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], str.__8d
mov dword [esp + 4], 0xd
lea eax, [esp + 0x43]
mov dword [esp], eax
call fcn.004eb980
lea eax, [esp + 0x43]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], str.__retcode
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x68a889
mov dword [esp + 8], edi
mov dword [esp + 4], str.module
mov dword [esp], 6
call fcn.004f0ed0
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x540d4c
mov eax, 0xffffffff
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
call sub.msvcrt.dll_strlen
mov esi, eax
jmp 0x540c90
xor ebx, ebx
mov eax, dword [0x6e770c]
test eax, eax
jne 0x540eee
call fcn.004ebd40
mov dword [0x6e770c], eax
test eax, eax
jne 0x540eee
mov dword [esp + 0x10], 0x16c
jmp 0x540f0e
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x540f41
mov dword [esp], esi
call eax
jmp 0x540f41
test bl, 0x20
jne 0x54108c
call fcn.004f0660
mov eax, 1
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], str.openssl_conf
mov dword [esp + 4], 0
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.005c63c0
test eax, eax
jne 0x540c03
jmp 0x54107a
xor eax, eax
jmp 0x541084
mov dword [esp], ebp
call fcn.004b8030
xor ebp, ebp
mov dword [esp], ebx
call fcn.005a81d0
mov dword [esp + 0x10], 0x10f
mov dword [esp + 0xc], str.conf_mod.c
mov dword [esp + 8], ebp
mov dword [esp + 4], 0x75
mov dword [esp], 0xe
call fcn.004f0560
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.__path
mov dword [esp + 8], edi
mov dword [esp + 4], str.module
mov dword [esp], 4
call fcn.004f0ed0
jmp 0x540ce8
mov ebp, 0x70
jmp 0x5410c0
mov ebp, 0x6e
jmp 0x5410c8
call fcn.004ebd40
mov dword [0x6e7710], eax
test eax, eax
je 0x5410be
jmp 0x540df1