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

Disassembly:
sub esp, 0x88
mov eax, dword [0x100cc8ec]
xor eax, esp
mov dword [esp + 0x84], eax
push ebp
mov ebp, dword [esp + 0x94]
push esi
push edi
mov edi, dword [esp + 0x98]
push 0x18
mov dword [esp + 0x14], ebp
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
add esp, 4
xor eax, eax
test esi, esi
jne 0x1005cdcb
mov dword [edi + 0x14], 0xfffffff6
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.10090524
add esp, 0x88
ret
cmp dword [ebp], 3
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
push ebx
mov dword [esi + 0x14], eax
jl 0x1005d254
mov eax, dword [ebp + 4]
movzx ecx, byte [eax]
movzx ebx, byte [eax + 1]
movzx edx, byte [eax + 2]
shl ecx, 8
add ebx, ecx
shl ebx, 8
add ebx, edx
mov ecx, 3
add ebx, ecx
cmp ebx, ecx
mov byte [esi], 0
jle 0x1005ce72
jmp 0x1005ce14
mov ebp, dword [esp + 0x14]
lea eax, [ecx + 3]
cmp dword [ebp], eax
mov dword [esp + 0x10], eax
jl 0x1005d254
mov edx, dword [ebp + 4]
movzx eax, byte [edx + ecx]
movzx ebp, byte [edx + ecx + 1]
movzx ecx, byte [edx + ecx + 2]
shl eax, 8
add eax, ebp
shl eax, 8
add eax, ecx
mov ecx, dword [esp + 0x10]
lea ebp, [eax + ecx]
mov ecx, dword [esp + 0x14]
cmp dword [ecx], ebp
jl 0x1005d254
mov ecx, dword [esp + 0x10]
add edx, ecx
push edx
push eax
call fcn.1005f0b0
movzx edx, byte [esi]
mov dword [esi + edx*4 + 4], eax
add byte [esi], 1
mov ecx, ebp
add esp, 8
cmp ecx, ebx
jl 0x1005ce10
cmp byte [edi + 0x2c], 3
jne 0x1005d03b
mov al, byte [edi + 0x2d]
cmp al, 1
je 0x1005ce8b
cmp al, 3
jne 0x1005d03b
cmp byte [edi + 0x1b], 1
jne 0x1005d03b
push edi
call fcn.1005c800
add esp, 4
cmp eax, 1
jne 0x1005d157
movzx eax, byte [edi + 0x6237]
push eax
lea ecx, [edi + 0x62c0]
push ecx
lea edx, [esp + 0x5c]
push edx
call sub.MSVCR80.dll_memcpy
movzx eax, byte [edi + 0x6239]
push eax
lea ecx, [edi + 0x6310]
push ecx
lea edx, [esp + 0x88]
push edx
call sub.MSVCR80.dll_memcpy
push 0x1000
call dword [sym.imp.MSVCR80.dll_malloc]
mov ebx, eax
add esp, 0x1c
test ebx, ebx
jne 0x1005cefc
mov dword [edi + 0x14], 0xfffffff6
jmp 0x1005d283
cmp byte [esi], 0
mov dword [esp + 0x14], 0
jbe 0x1005d031
lea ecx, [ecx]
push 0x1000
push 0
push ebx
call sub.MSVCR80.dll_memset
movzx eax, byte [edi + 0x6233]
add eax, 0xffffffeb
add esp, 0xc
cmp eax, 0x10
ja case.0x1005cf3a.22
movzx eax, byte [eax + 0x1005d2bc]
jmp dword [eax*4 + 0x1005d2a0]
mov dword [esp + 0x10], 9
jmp 0x1005cf7b
mov dword [esp + 0x10], 0xb
jmp 0x1005cf7b
mov dword [esp + 0x10], 0x15
jmp 0x1005cf7b
mov dword [esp + 0x10], 0xc
jmp 0x1005cf7b
mov dword [esp + 0x10], 0x1f
jmp 0x1005cf7b
mov dword [esp + 0x10], 1
push 0x34
lea ecx, [esp + 0x24]
push 0
push ecx
call sub.MSVCR80.dll_memset
movzx ebp, byte [edi + 0x6239]
push ebp
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x3c], 2
call sub.MSVCR80.dll_memcpy
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x60], ebp
mov ebp, dword [esi + ecx*4 + 4]
movzx ecx, byte [edi + 0x6237]
lea edx, [esp + 0x38]
push edx
push eax
push ecx
mov dword [esp + 0x74], 4
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x78]
push edx
push eax
push ecx
lea edx, [esp + 0x48]
push edx
push ebx
call sub.XecureAcCrypto.dll_SF_Cipher_Decrypt
add esp, 0x38
test eax, eax
jl 0x1005d131
push ebp
call fcn.1005f170
mov ecx, dword [esp + 0x1c]
lea eax, [ebx + 1]
push eax
add ecx, 0xffffffff
push ecx
call fcn.1005f0b0
mov ecx, dword [esp + 0x20]
add esp, 0xc
test ecx, ecx
mov dword [esi + ecx*4 + 4], eax
jne 0x1005d01f
mov dl, byte [ebx]
mov byte [edi + 0x2e], dl
movzx eax, byte [esi]
add ecx, 1
cmp ecx, eax
mov dword [esp + 0x14], ecx
jl 0x1005cf10
push ebx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov bl, byte [esi]
test bl, bl
je 0x1005d254
mov eax, dword [edi + 0x2e78]
test eax, eax
je 0x1005d058
push eax
call fcn.1005f1c0
add esp, 4
push 8
call dword [sym.imp.MSVCR80.dll_malloc]
mov dword [edi + 0x2e78], eax
mov eax, dword [esi + 4]
push eax
call fcn.1005f110
mov ecx, dword [edi + 0x2e78]
mov dword [ecx], eax
mov edx, dword [edi + 0x2e78]
add esp, 8
cmp bl, 1
mov dword [edx + 4], 0
mov eax, dword [edi + 0x2e78]
jbe 0x1005d0d9
lea ebx, [eax + 4]
lea eax, [esi + 8]
mov dword [esp + 0x14], eax
movzx eax, byte [esi]
sub eax, 1
mov dword [esp + 0x10], eax
push 8
call dword [sym.imp.MSVCR80.dll_malloc]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov ebp, eax
push edx
mov dword [ebx], ebp
call fcn.1005f110
add dword [esp + 0x1c], 4
add esp, 8
sub dword [esp + 0x10], 1
lea ebx, [ebp + 4]
mov dword [ebp], eax
mov dword [ebx], 0
jne 0x1005d0a6
mov ebx, dword [esi + 4]
mov eax, dword [ebx]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x2e7c]
test eax, eax
mov ecx, dword [ebx + 4]
lea ebp, [edi + 0x2e7c]
mov dword [esp + 0x1c], ecx
je 0x1005d107
push 0x88
push eax
call sub.XecureAcASN.dll_XFA_ASN_FreePDU
add esp, 8
push 0x88
lea edx, [esp + 0x1c]
push edx
push ebp
mov dword [ebp], 0
call sub.XecureAcASN.dll_XFA_ASN_DecodePDU
add esp, 0xc
test eax, eax
je 0x1005d163
mov dword [edi + 0x14], 0xffffff6e
jmp 0x1005d25b
push ebx
call dword [sym.imp.MSVCR80.dll_free]
mov dword [edi + 0x14], 0xffffffaf
jmp 0x1005d280
push ebx
call dword [sym.imp.MSVCR80.dll_free]
mov dword [edi + 0x14], 0xffffff74
jmp 0x1005d280
mov dword [edi + 0x14], 0xffffffaf
jmp 0x1005d283
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea eax, [edi + 0x2e80]
push eax
push 1
push ecx
push edx
push 0
push 0
call sub.XecureAcPKC.dll_XFA_ExtractCertInfo
mov eax, dword [edi + 0x5cb8]
add esp, 0x18
test eax, eax
je 0x1005d196
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov ecx, dword [ebx]
add ecx, ecx
add ecx, ecx
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
add edx, 0x80
push edx
call dword [sym.imp.MSVCR80.dll_malloc]
push eax
push ebx
push str.CERTIFICATE
mov dword [edi + 0x5cb8], eax
call fcn.10058590
add esp, 0x10
cmp byte [edi + 0x1b], 1
jne 0x1005d22a
mov edx, dword [edi + 4]
mov eax, dword [edx + 0x24]
test eax, eax
je 0x1005d250
push edi
call eax
add esp, 4
test eax, eax
jge 0x1005d250
add eax, 6
cmp eax, 5
ja case.default.0x1005d1ed
jmp dword [eax*4 + 0x1005d2d0]
mov dword [edi + 0x14], 0xffffff70
jmp 0x1005d25b
mov dword [edi + 0x14], 0xffffff72
jmp 0x1005d25b
mov dword [edi + 0x14], 0xffffff6b
jmp 0x1005d25b
mov dword [edi + 0x14], 0xffffff6f
jmp 0x1005d25b
mov dword [edi + 0x14], 0xffffff6a
jmp 0x1005d25b
mov dword [edi + 0x14], 0xffffff69
jmp 0x1005d25b
mov eax, dword [edi]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x1005d250
mov eax, dword [eax + 0x20]
mov edx, dword [edi + 0x2e78]
push eax
push edx
call ecx
add esp, 8
test eax, eax
jge 0x1005d250
mov dword [edi + 0x14], 0xffffffec
jmp 0x1005d25b
mov eax, esi
jmp 0x1005d285
mov dword [edi + 0x14], 0xffffff92
cmp byte [esi], 0
jbe 0x1005d279
movzx ebx, byte [esi]
lea edi, [esi + 4]
mov eax, dword [edi]
push eax
call fcn.1005f170
add esp, 4
add edi, 4
sub ebx, 1
jne 0x1005d266
push esi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x94]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10090524
add esp, 0x88
ret