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

Disassembly:
mov eax, 0x40
call fcn.10115600
push ebx
push ebp
push esi
lea eax, [esp + 0x34]
push edi
xor ebx, ebx
push eax
mov dword [esp + 0x34], ebx
call fcn.100067e0
mov edi, dword [esp + 0x78]
push edi
call fcn.10035cf0
push edi
mov esi, eax
call fcn.10006360
mov ebp, eax
add esp, 0xc
cmp ebp, ebx
mov dword [esp + 0x34], ebp
jge 0x100317c7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
push 0x8d
push str..cryptopkcs12p12_key.c
push esi
call fcn.10002040
push 0x8e
push str..cryptopkcs12p12_key.c
push ebp
mov dword [esp + 0x44], eax
call fcn.10002040
push 0x8f
lea ecx, [esi + 1]
push str..cryptopkcs12p12_key.c
push ecx
mov dword [esp + 0x3c], eax
call fcn.10002040
mov edx, dword [esp + 0x84]
mov dword [esp + 0x38], eax
lea eax, [esi + edx - 1]
cdq
idiv esi
add esp, 0x24
mov edi, eax
mov eax, dword [esp + 0x58]
imul edi, esi
cmp eax, ebx
je 0x10031834
lea eax, [esi + eax - 1]
cdq
idiv esi
imul eax, esi
mov dword [esp + 0x20], eax
jmp 0x1003183a
mov dword [esp + 0x20], ebx
mov eax, ebx
push 0x96
add eax, edi
push str..cryptopkcs12p12_key.c
push eax
mov dword [esp + 0x34], eax
call fcn.10002040
add esp, 0xc
mov dword [esp + 0x1c], eax
call fcn.100275d0
mov dword [esp + 0x10], eax
call fcn.100275d0
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
mov dword [esp + 0x24], eax
je 0x10031915
cmp dword [esp + 0x18], ebx
je 0x10031915
cmp dword [esp + 0x14], ebx
je 0x10031915
cmp dword [esp + 0x1c], ebx
je 0x10031915
cmp dword [esp + 0x10], ebx
je 0x10031915
cmp eax, ebx
je 0x10031915
cmp esi, ebx
jle 0x100318b0
mov eax, dword [esp + 0x64]
push esi
push eax
push ecx
call fcn.10118ce0
add esp, 0xc
test edi, edi
mov ecx, dword [esp + 0x1c]
jle 0x100318d3
mov eax, ebx
cdq
idiv dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
add ebx, 1
add ecx, 1
cmp ebx, edi
mov dl, byte [edx + eax]
mov byte [ecx - 1], dl
jl 0x100318b8
xor edi, edi
cmp dword [esp + 0x20], edi
jle 0x100318fd
jmp 0x100318e0
mov eax, edi
cdq
idiv dword [esp + 0x58]
mov eax, dword [esp + 0x54]
add edi, 1
add ecx, 1
cmp edi, dword [esp + 0x20]
mov dl, byte [edx + eax]
mov byte [ecx - 1], dl
jl 0x100318e0
mov eax, dword [esp + 0x74]
push 0
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.10006830
add esp, 0xc
test eax, eax
jne 0x10031986
push 0xda
push str..cryptopkcs12p12_key.c
push 0x41
push 0x6f
push 0x23
call fcn.10005d50
add esp, 0x14
mov eax, dword [esp + 0x18]
push eax
call fcn.100021f0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.100021f0
mov edx, dword [esp + 0x34]
push edx
call fcn.100021f0
mov eax, dword [esp + 0x28]
push eax
call fcn.100021f0
mov ecx, dword [esp + 0x20]
push ecx
call fcn.10027570
mov edx, dword [esp + 0x38]
push edx
call fcn.10027570
lea eax, [esp + 0x50]
push eax
call fcn.10006a70
mov eax, dword [esp + 0x4c]
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov ebp, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
push esi
push edx
lea eax, [esp + 0x40]
push eax
call fcn.100069e0
add esp, 0xc
test eax, eax
je 0x10031915
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x40]
push eax
call fcn.100069e0
add esp, 0xc
test eax, eax
je 0x10031915
mov ecx, dword [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.100069f0
add esp, 0xc
test eax, eax
je 0x10031915
mov ebx, dword [esp + 0x68]
mov edi, 1
cmp ebx, edi
jle 0x10031a4a
lea esp, [esp]
mov eax, dword [esp + 0x74]
push 0
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.10006830
add esp, 0xc
test eax, eax
je 0x10031915
mov edx, dword [esp + 0x18]
push ebp
push edx
lea eax, [esp + 0x40]
push eax
call fcn.100069e0
add esp, 0xc
test eax, eax
je 0x10031915
mov ecx, dword [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.100069f0
add esp, 0xc
test eax, eax
je 0x10031915
add edi, 1
cmp edi, ebx
jl 0x100319f0
mov edi, dword [esp + 0x6c]
cmp edi, ebp
mov eax, edi
jl 0x10031a56
mov eax, ebp
mov ebx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x74]
push ebx
push eax
call fcn.10118e40
add esp, 0xc
cmp ebp, edi
jge 0x10031be7
add dword [esp + 0x70], ebp
sub edi, ebp
xor ecx, ecx
test esi, esi
mov dword [esp + 0x6c], edi
jle 0x10031a98
mov eax, ecx
cdq
idiv ebp
mov eax, dword [esp + 0x14]
add ecx, 1
cmp ecx, esi
mov dl, byte [edx + ebx]
mov byte [ecx + eax - 1], dl
jl 0x10031a81
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
push ecx
push esi
push edx
call fcn.10027870
add esp, 0xc
test eax, eax
je 0x10031915
mov eax, dword [esp + 0x24]
push 1
push eax
call fcn.10028590
add esp, 8
test eax, eax
je 0x10031915
xor ebp, ebp
cmp dword [esp + 0x28], ebp
jle 0x10031bc6
mov ebx, dword [esp + 0x1c]
lea ebx, [ebx]
mov ecx, dword [esp + 0x10]
push ecx
push esi
push ebx
call fcn.10027870
add esp, 0xc
test eax, eax
je 0x10031915
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
push edx
push eax
push eax
call fcn.1002fde0
add esp, 0xc
test eax, eax
je 0x10031915
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.10027960
add esp, 8
test eax, eax
je 0x10031915
mov edx, dword [esp + 0x10]
push edx
call fcn.100274e0
add eax, 7
cdq
and edx, 7
add eax, edx
mov edi, eax
sar edi, 3
add esp, 4
cmp edi, esi
jle 0x10031b79
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.10027960
add esp, 8
test eax, eax
je 0x10031915
mov edx, dword [esp + 0x14]
push esi
add edx, 1
push edx
push ebx
call fcn.10118e40
add esp, 0xc
jmp 0x10031bb8
jge 0x10031ba2
mov eax, esi
sub eax, edi
push eax
push 0
push ebx
call fcn.10118ce0
mov edx, dword [esp + 0x1c]
mov ecx, ebp
sub ecx, edi
add ecx, dword [esp + 0x28]
add ecx, esi
push ecx
push edx
call fcn.10027960
add esp, 0x14
jmp 0x10031bb0
mov eax, dword [esp + 0x10]
push ebx
push eax
call fcn.10027960
add esp, 8
test eax, eax
je 0x10031915
add ebp, esi
add ebx, esi
cmp ebp, dword [esp + 0x28]
jl 0x10031ae0
mov ecx, dword [esp + 0x74]
push 0
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.10006830
add esp, 0xc
test eax, eax
jne 0x10031982
jmp 0x10031915
mov dword [esp + 0x30], 1
jmp 0x1003192d