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

Disassembly:
mov eax, 0x1290
call fcn.0046fcb0
mov eax, dword [0x59b2d0]
xor eax, esp
mov dword [esp + 0x128c], eax
mov eax, dword [esp + 0x12a8]
mov ecx, dword [esp + 0x12ac]
mov edx, dword [esp + 0x12b4]
push ebx
mov ebx, dword [esp + 0x12a0]
push ebp
mov ebp, dword [esp + 0x12a0]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x12c0]
push esi
mov esi, dword [esp + 0x12a0]
push edi
mov edi, dword [esp + 0x12c0]
mov dword [esp + 0x74], eax
xor eax, eax
push esi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x54], 1
mov dword [esp + 0x30], eax
call fcn.00407820
add esp, 4
test eax, eax
jne 0x41397c
push esi
call fcn.00407830
add esp, 4
mov ecx, str.mscryptoapi
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x413940
test dl, dl
je 0x41393c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x413940
add ecx, 2
add eax, 2
test dl, dl
jne 0x413920
xor eax, eax
jmp 0x413945
sbb eax, eax
sbb eax, 0xffffffff
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
push ecx
push edx
push ebp
push esi
test eax, eax
mov eax, dword [esp + 0x12c0]
push eax
push ebx
jne 0x41396d
call fcn.004104c0
add esp, 0x18
mov esi, eax
jmp 0x4142c7
call fcn.0040f090
add esp, 0x18
mov esi, eax
jmp 0x4142c7
lea ecx, [esp + 0x2c]
push ecx
push esi
call fcn.00405bf0
add esp, 8
test eax, eax
jne 0x4142c4
mov edx, dword [esp + 0x2c]
push edx
call fcn.00436ec0
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0xa8]
push edx
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x12ec]
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x8c]
push eax
push ecx
push ebx
push ebp
call fcn.00436990
mov esi, eax
add esp, 0x50
test esi, esi
je 0x413a42
mov eax, dword [0x5d2de8]
test eax, eax
je 0x4143c6
push esi
push 0x2a5
push str.C:projectslirssl_srccryptogostgost3410_2012_ossl.c
push str._s:_d_t_gost3410_kek_dec._ber_decode_GostR3410_KeyTransport_failed:_0x_x_n
push eax
call fcn.0047013d
add esp, 0x14
jmp 0x4143c6
test edi, edi
je 0x413a72
mov edx, dword [esp + 0x30]
push edx
lea eax, [esp + 0x18]
push eax
push 0
call fcn.004155b0
mov esi, eax
push esi
call fcn.00406260
mov ecx, dword [esp + 0x40]
sub dword [esp + 0x24], ecx
push esi
mov dword [edi], eax
call fcn.00415460
add esp, 0x14
mov eax, dword [esp + 0x78]
mov esi, dword [esp + 0x1c]
test eax, eax
je 0x413a8d
mov edx, dword [esp + 0x10]
push esi
push edx
push eax
call fcn.0046f2a0
add esp, 0xc
mov eax, dword [esp + 0x74]
test eax, eax
je 0x413a97
mov dword [eax], esi
cmp dword [esp + 0x18], 0
jne 0x413abf
mov eax, dword [0x5d2de8]
test eax, eax
je 0x4142c4
push 0x2b8
push str.C:projectslirssl_srccryptogostgost3410_2012_ossl.c
push str._s:_d_Sender_public_key_not_set_n
jmp 0x4142bb
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
push ecx
push edx
call fcn.0042e800
add esp, 0xc
test eax, eax
je 0x413afb
mov eax, dword [0x5d2de8]
test eax, eax
je 0x4142c4
push 0x2c1
push str.C:projectslirssl_srccryptogostgost3410_2012_ossl.c
push str._s:_d_t_gost3410_kek_dec._GOST28147_89_FindPar_failed_n
jmp 0x4142bb
cmp dword [esp + 0x6c], 0x80
jne 0x413ea4
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0xf8]
push eax
push ecx
call fcn.0043bd80
add esp, 8
test eax, eax
je 0x413b43
mov eax, dword [0x5d2de8]
test eax, eax
je 0x4142c4
push 0x2cf
push str.C:projectslirssl_srccryptogostgost3410_2012_ossl.c
push str._s:_d_t_gost3410_kek_dec._Loading_LCC_private_key_failed_n
jmp 0x4142bb
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x13c]
push edx
push eax
call fcn.0043be30
add esp, 8
test eax, eax
je 0x413b7d
mov eax, dword [0x5d2de8]
test eax, eax
je 0x4142c4
push 0x2d7
push str.C:projectslirssl_srccryptogostgost3410_2012_ossl.c
push str._s:_d_t_gost3410_kek_dec._Loading_LCC_public_key_failed_n
jmp 0x4142bb
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x64]
push ecx
push edx
push eax
call fcn.0043d9e0
add esp, 0xc
test eax, eax
je 0x413bb9
mov eax, dword [0x5d2de8]
test eax, eax
je 0x4142c4
push 0x2df
push str.C:projectslirssl_srccryptogostgost3410_2012_ossl.c
push str._s:_d_t_gost3410_kek_dec._Invalid_sender_public_key_3410_OID_n
jmp 0x4142bb
lea ecx, [esp + 0x123c]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x140]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x100]
push eax
mov eax, dword [esp + 0x70]
push ecx
push edx
push eax
call fcn.0043c150
add esp, 0x18
test eax, eax
je 0x413c0d
mov eax, dword [0x5d2de8]
test eax, eax
je 0x4142c4
push 0x2e6
push str.C:projectslirssl_srccryptogostgost3410_2012_ossl.c
push str._s:_d_t_gost3410_kek_dec._GOSTR3410_2012_512_VKO_256_failed_n
jmp 0x4142bb
cmp dword [esp + 0x12b4], 0
je 0x413c72
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x121c]
push ecx
push edx
push eax
push 4
push 0x582e4c
lea ecx, [esp + 0x1250]
push 0x20
push ecx
call fcn.0043cf80
add esp, 0x1c
test eax, eax
je 0x413c87
mov ecx, dword [0x5d2de8]
test ecx, ecx
je 0x4142c4
push eax
push 0x2f4
push str.C:projectslirssl_srccryptogostgost3410_2012_ossl.c
push str._s:_d_GOSTR3411_2012_256_KDF_failed__rc__0x_x_n
push ecx
call fcn.0047013d
add esp, 0x14
jmp 0x4142c4
mov ecx, 8
lea esi, [esp + 0x123c]
lea edi, [esp + 0x121c]
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 0x50]
push 0x1058
lea eax, [esp + 0x1c8]
push 0
push eax
call fcn.0046f220
mov eax, dword [esp + 0x30]
movzx edx, byte [eax + 0x15]
mov eax, dword [eax + 0x10]
lea ecx, [esp + 0x1228]
push ecx
push 0
push 0
push edx
push 0
push 1
push eax
lea ecx, [esp + 0x1ec]
push 0
push ecx
call fcn.0042fd00
add esp, 0x30
test eax, eax
jne 0x413e83
jmp 0x413ce0
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x7c]
mov dword [esp + 0x5c], eax
lea ecx, [esp + 0x125c]
mov dword [esp + 0x7c], eax
push edx
lea eax, [esp + 0x60]
mov dword [esp + 0x84], ecx
push eax
lea ecx, [esp + 0x1cc]
push ecx
call fcn.0042ff80
add esp, 0xc
test eax, eax
jne 0x4141e7
lea edx, [esp + 0x1c4]
push edx
call fcn.004301c0
add esp, 4
test eax, eax
jne 0x414208
push 0x1058
push eax
lea eax, [esp + 0x1cc]
push eax
call fcn.0046f220
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x1228]
push ecx
movzx ecx, byte [eax + 0x15]
push edx
mov edx, dword [eax + 0x10]
push 0
push ecx
push 0
push 5
push edx
lea eax, [esp + 0x1ec]
push 1
push eax
call fcn.0042fd00
add esp, 0x30
test eax, eax
jne 0x414229
mov edx, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x1260]
lea eax, [esp + 0x60]
mov dword [esp + 0x64], ecx
push eax
lea ecx, [esp + 0x1cc]
push ecx
mov dword [esp + 0x68], edx
call fcn.0042ff80
add esp, 0xc
test eax, eax
jne 0x414247
lea edx, [esp + 0x1c4]
push edx
call fcn.004301c0
add esp, 4
test eax, eax
jne 0x414261
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
cmp ecx, dword [esp + 0x120c]
je 0x41427b
mov eax, dword [0x5d2de8]
test eax, eax
je 0x413e06
push 0x3a4
push str.C:projectslirssl_srccryptogostgost3410_2012_ossl.c
push str._s:_d_t_gost3410_kek_dec._Wrong_MAC_n
push eax
call fcn.0047013d
add esp, 0x10
test ebx, ebx
je 0x4142c4
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x121c]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [edx + 0x10]
lea ecx, [esp + 0x1244]
push ecx
push eax
xor ebx, ebx
call fcn.00430390
add esp, 0x10
test eax, eax
jne 0x4142a3
push 0x1058
push eax
lea ecx, [esp + 0x1cc]
push ecx
call fcn.0046f220
mov eax, dword [esp + 0x30]
movzx ecx, byte [eax + 0x15]
lea edx, [esp + 0x1228]
push edx
mov edx, dword [eax + 0x10]
push ebx
push ebx
push ecx
push ebx
push 1
push edx
lea eax, [esp + 0x1ec]
push ebx
push eax
call fcn.0042fd00
add esp, 0x30
test eax, eax
je 0x413ce0
mov eax, dword [0x5d2de8]
test eax, eax
je 0x4142c4
push 0x367
push str.C:projectslirssl_srccryptogostgost3410_2012_ossl.c
push str._s:_d_t_gost3410_kek_dec._GOST28147_89_Init_failed_n
jmp 0x4142bb
mov ecx, dword [esp + 0x28]
mov edx, 0xa
mov eax, 0x582e50
mov esi, dword [ecx]
cmp esi, dword [eax]
jne 0x41403e
sub edx, 4
add eax, 4
add ecx, 4
cmp edx, 4
jae 0x413eb2
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41403e
mov al, byte [eax + 1]
cmp al, byte [ecx + 1]
jne 0x41403e
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x8c]
push ecx
push edx
call fcn.0043c900
add esp, 8
test eax, eax
je 0x413f1a
mov eax, dword [0x5d2de8]
test eax, eax
je 0x4142c4
push 0x2fe
push str.C:projectslirssl_srccryptogostgost3410_2012_ossl.c
push str._s:_d_t_gost3410_kek_dec._Loading_LCC_private_key_failed_n
jmp 0x4142bb
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xb0]
push eax
push ecx
call fcn.0043c9b0
add esp, 8
test eax, eax
je 0x413f54
mov eax, dword [0x5d2de8]
test eax, eax
je 0x4142c4
push 0x306
push str.C:projectslirssl_srccryptogostgost3410_2012_ossl.c
push str._s:_d_t_gost3410_kek_dec._Loading_LCC_public_key_failed_n
jmp 0x4142bb
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x40]
push edx
push eax
push ecx
call fcn.0043a8e0
add esp, 0xc
test eax, eax
je 0x413f90
mov eax, dword [0x5d2de8]
test eax, eax
je 0x4142c4
push 0x30e
push str.C:projectslirssl_srccryptogostgost3410_2012_ossl.c
push str._s:_d_t_gost3410_kek_dec._Invalid_sender_public_key_3410_OID_n
jmp 0x4142bb
lea edx, [esp + 0x123c]
push edx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0xb4]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x94]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
push eax
push ecx
call fcn.0043c030
add esp, 0x18
test eax, eax
je 0x413fe4
mov eax, dword [0x5d2de8]
test eax, eax
je 0x4142c4
push 0x315
push str.C:projectslirssl_srccryptogostgost3410_2012_ossl.c
push str._s:_d_t_gost3410_kek_dec._GOSTR3410_2012_256_VKO_256_failed_n
jmp 0x4142bb
cmp dword [esp + 0x12b4], 0
je 0x413c72
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x121c]
push edx
push eax
push ecx
push 4
push 0x582e4c
lea edx, [esp + 0x1250]
push 0x20
push edx
call fcn.0043cf80
add esp, 0x1c
test eax, eax
je 0x413c87
mov ecx, dword [0x5d2de8]
test ecx, ecx
je 0x4142c4
push eax
push 0x323
jmp 0x413c5a
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x8c]
push eax
push ecx
call fcn.004398d0
add esp, 8
test eax, eax
je 0x414078
mov eax, dword [0x5d2de8]
test eax, eax
je 0x4142c4
push 0x32d
push str.C:projectslirssl_srccryptogostgost3410_2012_ossl.c
push str._s:_d_t_gost3410_kek_dec._Loading_LCC_private_key_failed_n
jmp 0x4142bb
mov eax, dword [esp + 0x18]
lea edx, [esp + 0xb0]
push edx
push eax
call fcn.00439a30
add esp, 8
test eax, eax
je 0x4140b2
mov eax, dword [0x5d2de8]
test eax, eax
je 0x4142c4
push 0x335
push str.C:projectslirssl_srccryptogostgost3410_2012_ossl.c
push str._s:_d_t_gost3410_kek_dec._Loading_LCC_public_key_failed_n
jmp 0x4142bb
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x40]
push ecx
push edx
push eax
call fcn.0043aa20
add esp, 0xc
test eax, eax
je 0x4140ee
mov eax, dword [0x5d2de8]
test eax, eax
je 0x4142c4
push 0x33d
push str.C:projectslirssl_srccryptogostgost3410_2012_ossl.c
push str._s:_d_t_gost3410_kek_dec._Invalid_sender_public_key_3410_OID_n
jmp 0x4142bb
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x70]
push ecx
push edx
push eax
call fcn.0042e740
add esp, 0xc
test eax, eax
je 0x41412a
mov eax, dword [0x5d2de8]
test eax, eax
je 0x4142c4
push 0x344
push str.C:projectslirssl_srccryptogostgost3410_2012_ossl.c
push str._s:_d_t_gost3410_kek_dec._Invalid_sender_public_key_3411_OID_n
jmp 0x4142bb
lea ecx, [esp + 0x123c]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xb4]
push edx
mov edx, dword [esp + 0x78]
lea eax, [esp + 0x94]
push eax
mov eax, dword [esp + 0x4c]
push ecx
push edx
push eax
call fcn.00439e90
add esp, 0x18
test eax, eax
je 0x41417e
mov eax, dword [0x5d2de8]
test eax, eax
je 0x4142c4
push 0x34b
push str.C:projectslirssl_srccryptogostgost3410_2012_ossl.c
push str._s:_d_t_gost3410_kek_dec._GOSTR3410_2001_VKO_failed_n
jmp 0x4142bb
xor ebx, ebx
cmp dword [esp + 0x12b4], ebx
je 0x4141cd
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x121c]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [ecx + 0x10]
lea eax, [esp + 0x1244]
push eax
push edx
call fcn.00430390
add esp, 0x10
test eax, eax
je 0x413c8b
mov eax, dword [0x5d2de8]
test eax, eax
je 0x4142c4
push 0x358
jmp 0x4142b1
mov ecx, 8
lea esi, [esp + 0x123c]
lea edi, [esp + 0x121c]
rep movsd dword es:[edi], dword [esi]
jmp 0x413c8b
mov eax, dword [0x5d2de8]
test eax, eax
je 0x4142c4
push 0x373
push str.C:projectslirssl_srccryptogostgost3410_2012_ossl.c
push str._s:_d_t_gost3410_kek_dec._GOST28147_89_Update_failed_n
jmp 0x4142bb
mov eax, dword [0x5d2de8]
test eax, eax
je 0x4142c4
push 0x37b
push str.C:projectslirssl_srccryptogostgost3410_2012_ossl.c
push str._s:_d_t_gost3410_kek_dec._GOST28147_89_Final_failed_n
jmp 0x4142bb
mov eax, dword [0x5d2de8]
test eax, eax
je 0x4142c4
push 0x389
push str.C:projectslirssl_srccryptogostgost3410_2012_ossl.c
push str._s:_d_t_gost3410_kek_dec._GOST28147_89_Init_context_failed_n
jmp 0x4142bb
mov eax, dword [0x5d2de8]
test eax, eax
je 0x4142c4
push 0x393
push str.C:projectslirssl_srccryptogostgost3410_2012_ossl.c
push str._s:_d_t_gost3410_kek_dec._GOST28147_89_Update_failed_n
jmp 0x4142bb
mov eax, dword [0x5d2de8]
test eax, eax
je 0x4142c4
push 0x39b
push str.C:projectslirssl_srccryptogostgost3410_2012_ossl.c
push str._s:_d_t_gost3410_kek_dec._GOST28147_89_Final_failed_n
jmp 0x4142bb
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
mov dword [ecx], eax
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x41429f
push eax
lea edx, [esp + 0x1260]
push edx
push ecx
call fcn.0046f2a0
add esp, 0xc
xor esi, esi
jmp 0x4142c7
mov eax, dword [0x5d2de8]
test eax, eax
je 0x4142c4
push 0x3af
push str.C:projectslirssl_srccryptogostgost3410_2012_ossl.c
push str._s:_d_t_gost3410_kek_dec._GOST28147_89_KDF_failed_n
push eax
call fcn.0047013d
add esp, 0x10
or esi, 0xffffffff
push 0x40
lea eax, [esp + 0x1260]
push 0
push eax
call fcn.0046f220
xor eax, eax
lea ecx, [esp + 0x98]
push 9
push ecx
mov dword [esp + 0x1230], eax
mov dword [esp + 0x1234], eax
mov dword [esp + 0x1238], eax
mov dword [esp + 0x123c], eax
mov dword [esp + 0x1240], eax
mov dword [esp + 0x1244], eax
mov dword [esp + 0x1248], eax
mov dword [esp + 0x124c], eax
call fcn.004386a0
lea edx, [esp + 0x10c]
push 0x11
push edx
call fcn.004386a0
push 0x1058
lea eax, [esp + 0x1e4]
push 0
push eax
call fcn.0046f220
mov ecx, dword [esp + 0x74]
push ecx
call fcn.004044c0
mov edx, dword [esp + 0x80]
push edx
call fcn.004044c0
mov eax, dword [esp + 0x44]
push eax
call fcn.004044c0
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.004044c0
mov edx, dword [esp + 0x58]
push edx
call fcn.004044c0
mov eax, dword [esp + 0x64]
push eax
call fcn.004044c0
mov ecx, dword [esp + 0x58]
add esp, 0x40
push ecx
call fcn.004044c0
mov edx, dword [esp + 0x14]
push edx
call fcn.004044c0
mov eax, dword [esp + 0x34]
add esp, 8
test eax, eax
je 0x4143bd
mov ecx, dword [eax]
mov edx, dword [eax + 8]
push ecx
push 0
push edx
call fcn.0046f220
mov eax, dword [esp + 0x38]
add esp, 0xc
push eax
call fcn.00404c30
add esp, 4
mov ecx, dword [esp + 0x129c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046f206
add esp, 0x1290
ret